I have customized my tally entry as an invoice and to accepts around 20 or so data entries.....but most of the data is same for reccuring invoices of the same party.i need a button so that if i click it a duplicate invoice or debit note is generated with a new voucher no.....PLZ HELP!
First Select The Entry Sale Invoice or Debit Note Press ALT+2 Button (This Command Duplicate Selected Entry) Now Change as you required and save it.
This working but have 2 select more than one ....2 line can it be converted ; -------------------------------- code Add : Button : Refresh TDL, Dupjkvch [Button: Dupjkvch] Title: "Duplicate Selected" Key: Ctrl+E 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