Help : Print only Original Copy or Dublicate copy or triplicate copy as per user's Choice

Discussion in 'Tally Developer' started by Shibayan, May 15, 2015.

    
  1. Shibayan

    Shibayan New Member


    Hello friends...
    I m new here and New to TDL
    I want to Print Original, Dublicate or Triplicate copy separately in sales invoice, Where user can select which copy he want to print. Suppose I want to Print only the Triplicate copy of a Sales Invoice. Any TDL code for this?
    Thanks in Advance
     


  2. Gurpreet Singh

    Gurpreet Singh New Member


    [Field: Copy Field]

    FullWidth : Yes

    Set As : If @IsExciseOn AND @@IsSales AND @IsExciseVchType Then @@ExciseSet Else @NonTaxInvSet

    IsExciseOn : @@IsIndian AND $$IsExciseOn AND $$IsInventoryOn:$$CurrentCompany

    IsExciseVchType : $$Owner:$$FilterCount:LedgerEntries:IsLedDutyHeadExcise > 0

    NonTaxInvSet : If @@GetCopyNum = 1 Then @Original Else +
    If @@GetCopyNum = 2 Then $$LocaleString:"(Duplicate)" Else +
    If @@GetCopyNum = 3 Then $$LocaleString:"(Triplicate)" Else +
    If @@GetCopyNum = 4 Then $$LocaleString:"(Quadruplicate)" Else $$LocaleString:"(Extra Copy)"

    Original : If @@IsIndianVATVch AND $IsTaxInvoice:VoucherType:$VoucherTypeName Then $$LocaleString:"Original - Buyer's Copy" +
    Else $$LocaleString:"(Original)"
    Style : Small Italic
    Align : Right




    use method as per your requirement
     


  3. Shibayan

    Shibayan New Member


    Thank you so much sir...
    the code u write ..is showing perfectly working on erp 9...
    but still unable to print the costume copy which I want to print. .. let me show u some screen shots..


    [​IMG]
    [​IMG]

    I want something like this both for tax and retail invoice. any Idea?
     


  4. Joharfchhil

    Joharfchhil Member


    Send your TDL file to make changes
     


  5. tejeet

    tejeet Member


    Hello friends...

    I want to Print "Original - Buyer's" , Duplicate or Triplicate copy separately in sales invoice, Where user can select which copy he want to print. Suppose I want to Print only 1 copy , than it should print "Original - Buyer's", if i select 2 copies ,than it should print first copy as "Original - Buyer's" & on second copy "duplicate , if i select 3 copies , than it should print "Original - Buyer's" on first copy, on second - "duplicate & on 3rd copy "Triplicate: copy of a Sales Invoice.
    if Any TDL code for this? codes given is not working for 1 copy, when i select 1 copy it does not print any thing - not "original - buyers copy "
    Thanks in Advance
     


  6. Chandran

    Chandran New Member


    Thanks sir...
    This code Work Completely in my tally...
     


Share This Page