Voucher sync

- strings should be enclosed in quotes in the executed code
- $term_cause variable should be a digit and not a string
- if $stop_time is null make sure null is actually passed