Hi All Jay Here Hope You Will Enjoy This Code. With This Code You Can "Duplicate Selected Vouchers". Need To Accept First Voucher Only. (Will Improve Later) Code: [#Form: Day Book] Add: Button : Dupvch [#Form: Ledger Vouchers] Add: Button : Dupvch [Button: Dupvch] Title: "Duplicate Selected" Key: Ctrl+X Action: Call : jaydup [Function:jaydup] Variable : MSTID : String Object : Voucher : #VchMasterID 01 : WALK COLLECTION : DupJktVouchers 02 : SET : MSTID : "ID:"+ $$String:$MasterID 03 : Duplicate : Voucher 04: Trigger Key : Ctrl+A 05 : END WALK [Collection: DupJktVouchers] Data Source : Report :Selected Fetch : *.*,All Ledger Entries.*,Allinventoryentries.*
Hi Sir how to stop Duplicate Voucher number in purchase Voucher like Duplicate Purchase Stopper type any thing plz help thank you
Exactly...when you have selected manual, then there would be an option activated just below it asking...."prevent duplicates"... which is to be set to yes. If not appearing, then you must be using a OLD version of Tally.
temporarily use this code and prevent in voucher type masters then disable this code [#Field: VTYP PreventDups] Delete: Skip on
Code Now Corrected.. (No Need To Accept First Voucher Manually) Code: [#Form: Day Book] Add: Button : Dupjkvch [#Form: Ledger Vouchers] Add: Button : Dupjkvch [Button: Dupjkvch] Title: "Duplicate Selected" Key: Ctrl+X Action: Call : jaydup [Collection: DupJktVouchers] Data Source : Report :Selected Fetch: Date, VoucherTypeName, Narration, LedgerEntries.* [Function: jaydup] 10 : WALK COLLECTION : DupJktVouchers 20 : SET : SVViewName : $$SysName:AcctgVchView 30 : NEW OBJECT : Voucher 40 : SET VALUE : Date : $Date 50 : SET VALUE : VoucherTypeName : $VoucherTypeName 60 : SET VALUE : Narration : $Narration 70 : SET VALUE : PersistedView : ##SVViewName 80 : WALK COLLECTION : LedgerEntries 90 : INSERT COLLECTION OBJECT : Ledger Entries 100 : SET VALUE : Ledger Name : $LedgerName 110 : SET VALUE : IsDeemedPositive : $IsDeemedPositive 120 : SET VALUE : Amount : $Amount 130 : SET TARGET : .. 140 : END WALK 150 : CREATE TARGET 160 : END WALK 170 : RETURN ;;End Of Code
Dear Jay this code is not working. If have wormimg code pls send on bajajmola@gmail.com or Whatsaap : 9829014051 Thanks