This is just a short note on new voucher allocation from code.
When you need to allocate a new voucher from a form, use _makeDecisionLater = true, when from code _makeDecisionLater = false; or, alternatively, it should be balanced with a used() call.
Got it from the forum.
A good point to start is the archived article (Russian).
When you need to allocate a new voucher from a form, use _makeDecisionLater = true, when from code _makeDecisionLater = false; or, alternatively, it should be balanced with a used() call.
Got it from the forum.
A good point to start is the archived article (Russian).