Hello, Has anyone tried cancelling a voucher via TDL - I'm trying not to use trigger Key. here's my code: Code: [Function: CancelVoucherFunc] 050 : Log: "HEllo" 081: New Object: Voucher 084 : SET : SVVoucherType : "Sales" 087 : SET VALUE : Date : $$Date:"01-09-2019" 090 : SET VALUE : VoucherTypeName : "Sales" 092 : SET VALUE : VoucherNumber : "123" 135 : INSERT COLLECTION OBJECT : LEDGERENTRIES 140 : SET VALUE : LedgerName : "ledger1" 150 : SET VALUE : IsDeemedPositive : $IsDeemedPositive 500 : Create Target 620 : Cancel Object: Voucher
you have not specified the MstID without specifying MstID (actual voucher) to be cancelled, how the target object be cancelled