Dear Experts in Sales Voucher After Print its go to optional voucher to Regular Voucher Please Here is the code Code: [#Form: Sales Color] On:After Print: Yes : CALL :Update Voucher as Reguler [Function : Update Voucher as Reguler] 010 : START BATCH POST : 500 020 : Walk Collection : My Vouchers 030 : Set Object : (Voucher, ##VchID). 040 : Set Target 050 : Set value : IsOptional : No 060 : Set Value : Narration : "Status Changed" 070 : Alter Target 080 : Set Target : .. 090 : End Walk 500 : End Batch Post [Collection: My Vouchers] Type : Vouchers : VoucherType Child of : $$VchTypeSales Belongs to : Yes [System : Formula] VchID : $$SPrintF:@@VCHMasterID:$MasterID
I think u have got the answer. But for compilation purpose I m giving suggestion. 050 : Set value : IsOptional : Yes ;; No instead Dhanyawad