need to print 3 copy of Invoice

Discussion in 'Requests' started by Naitesh, Nov 11, 2018.

         
  1. Naitesh

    Naitesh Member


    Hello Sir
    need print 3 invoice copy
    i tried this but not result
    plz help

    [#Form : Sales Color]
    Delete : Print
    Add : Print : nInvA

    [Report :nInvA]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : nInvA
    PrintSet : ##SVPrintCopies:3

    [Form:nInvA]
    Width : 8.27 INCH
    Height : 11.69 INCH
    Space Top: 0.50 INCH
    Space Bottom: 0.50 INCH
    Space Left: 0.50 INCH
    Space Right: 0.50 INCH
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    SVPrintCopies is for Purchase

    for SALES it is ....... ##SAPrintCopies
     


  3. Naitesh

    Naitesh Member


    Hello Sir Thank You For Reply
    I Tried With Your Given Code But Not Result Only One Copy Shows in Preview

    [#Form : Sales Color]
    Delete : Print
    Add : Print : nInvA

    [Report :nInvA]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : nInvA
    PrintSet :##SAPrintCopies:3

    [Form:nInvA]
    Width : 8.27 INCH
    Height : 11.69 INCH
    Space Top: 0.50 INCH
    Space Bottom: 0.50 INCH
    Space Left: 0.50 INCH
    Space Right: 0.50 INCH

    Part: KA Opening Page Break, KA Invoice Body
    Bottom Part: nGSTanalisysBankdetailsledgerentries,KA Invoice Total, KA Goods Sold
    Page Break : ClKA Page Break, KA Opening Page Break

    [Part:ClKA Page Break]
    Lines : GIKA ClPgBrk

    [Line: GIKA ClPgBrk]
    Fields : Simple Field
    Local: Field: Simple Field : Set As : "Continued..."
    Local: Field: Simple Field : FullWidth : Yes
    Local: Field: Simple Field : Align : Right
    Border : Full Thin Top

    [Part: KA Opening Page Break]
    Part: KA Invoice Title, KA CMP Details, KA Coloumn Titles
    Vertical: Yes

    [Part:KA Invoice Title]
    Line:KA Invoice Title

    [Line:KA Invoice Title]
    Field: Simple Field
    Right Field:Name Field
    Local: Field: Simple Field: Set as: if @@IsCreditNote then "Credit Note" else "TAX INVOICE"
    Local: Field: Simple Field: Style: Large Bold
    Local: Field: Simple Field: Space Left: 35
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Name Field: Set as:If @@GetCopyNum = 1 Then "ORIGINAL FOR RECIPIENT" Else +
    If @@GetCopyNum = 2 Then $$LocaleString:"DUPLICATE FOR SUPPLIER" Else +
    If @@GetCopyNum = 3 Then $$LocaleString:"TRIPLICATE FOR TRANSPOTER" Else +
    If @@GetCopyNum = 4 Then $$LocaleString:"EXTRA COPY" Else $$LocaleString:"EXTRA COPY"

    [Part:KA CMP Details]
    Left Part: DMICash CMP Name Details,KA Customer Details
    Border: Thick Cover
    Height: 45 mms

    [Part:DMICash CMP Name Details]
    Line: KA CMP Name, KA CMP Address,KA Invoice No, KA Invoice Date, KA Invoice ShippedBy
    Width: 50% Page
    Border: Thick Right


    [Line: KA CMP Name]
    Field: Name Field
    Local: Field: Name Field: Set as: @@CmpMailName
    Local: Field: Name Field: Style:parth CMP Name Cash
    Local: Field: Name Field: Full Width: Yes

    [Style: Parth CMP Name Cash]
    Font: Adobe Garamond Pro Bold
    Height:20
    Bold: Yes

    [Line:KA CMP Address]
    Field: Name Field
    Local: Field: Name Field: Set as: $$FullList:CompanyAddress:$Address
    Local: Field: Name Field: Full Width: Yes
    Local: Field: Name Field: Line:0
    Local: Field: Name Field: Style:p9
    Local: Field: Name Field: Border: Thick Bottom
    Space Bottom:0.50


    [Line:KA Invoice No]
    Field: Medium Prompt,Simple Field
    Local: Field: Medium Prompt: Set as: if @@IsCreditNote then "Cr.Note No :" else "Invoice No :"
    Local: Field: Medium Prompt: Style: P9B
    Local: Field: Medium Prompt: Width: 15
    Local: Field: Simple Field: Set as: $VoucherNumber
    Local: Field: Simple Field: Style: P9
    Local: Field: Simple Field: Full Width: Yes
    Space Top:0.10
    Space Bottom:0.25

    [Line:KA Invoice Date]
    Field: Medium Prompt, Simple Field
    Local: Field: Medium Prompt: Set as: "Dated"
    Local: Field: Medium Prompt: Style: P9B
    Local: Field: Medium Prompt: Width: 15
    Local: Field: Simple Field: Set as: $Date
    Local: Field: Simple Field: Style: P9
    Local: Field: Simple Field: Full Width: Yes
    Space Bottom:0.25


    [Line:KA Invoice ShippedBy]
    Field: Medium Prompt, Simple Field
    Local: Field: Medium Prompt: Set as: "Transport By :"
    Local: Field: Medium Prompt: Style: P9B
    Local: Field: Medium Prompt: Width: 15
    Local: Field: Simple Field: Set as: $BasicShippedBy
    Local: Field: Simple Field: Style: P9
    Local: Field: Simple Field: Full Width: Yes



    [Part:KA Customer Details]
    Line:KA Customer Details Title, KA Customer Name, KA Customer Address, KA Customer State Name, KA Customer GST No, KA Customer Contact
    Width: 50% Page
    Border: Thick Right

    [Line:KA Customer Details Title]
    Field: Simple Field
    Local: Field: Simple Field : Set as: "Details for Buyer (Billed & Shipped To )"
    Local: Field: Simple Field: Style:p9B
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Border: Thick Bottom
    Space Top:0.25
    Space Bottom:0.25

    [Line:KA Customer Name]
    Field: Simple Field
    Local: Field: Simple Field: Set as: @@SimpleOtherPartyName
    Local: Field: Simple Field: Style: P9B
    Local: Field: Simple Field: Full Width: Yes
    Space Top:0.25

    [Line:KA Customer Address]
    Field: Simple Field
    Local: Field: Simple Field: Set as: $$FullList:BasicBuyerAddress:$BasicBuyerAddress
    Local: Field: Simple Field: Style: P9
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Line:0

    [Line:KA Customer State Name]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "State Name"+" : "+ $StateName +" "+ "Code :"+" "+ $$getgststatecode:mad:StateName
    Local: Field: Simple Field: Local Formula:StateName : If NOT ($$IsEmpty:$StateName OR $$IsSysName:NotApplicable:$StateName) Then $StateName Else $LedStateName:Ledger:mad:PartyName
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Style: P9

    [Line:KA Customer GST No]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "GSTIN No : " +" "+ $PartyGSTIN +" "+" PAN No :"+" "+$IncomeTaxNumber:Ledger:$BasicBuyerName
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Style: P9

    [Line:KA Customer Contact]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "Contact Details :"+" "+ @@VchContactNo
    Local: Field: Simple Field: Style: P9
    Local: Field: Simple Field: Full Width: Yes

    [Part:KA Coloumn Titles]
    Line:KA Invoice Body Title
    Border: Thick Cover
    Common Border: Yes

    [Part: KA Invoice Body]
    Part:KA Invoice Body Coloumns
    Vertical: Yes
    Border: Thin Cover

    [Part:KA Invoice Body Title]
    Line:KA Invoice Body Title
    Common Border: Yes

    [Line:KA Invoice Body Title]
    Use: KA Invoice Body Coloumns

    Local: Field: Default: Type: String
    Local: Field: Default: Style: P9B
    Local: Field: Default: Align: Center

    Local: Field:KA SrNo: Set as: "Sr "
    Local: Field:KA Item Description: Set as: "Item"

    Local: Field:KA Billed Qty: Set as: "Billed Qty"
    Local: Field: KA Rate: Set as: "Rate"
    Local: Field:KA Gross Amt: Set as: "Amount"

    Border: Thin Top
    Space Top: 0.25

    [Part:KA Invoice Body Coloumns]
    Line:KA Invoice Body Coloumns
    Repeat:KA Invoice Body Coloumns:Inventory Entries
    ; Bottom Line: KA Invoice Body Coloumns Total
    Scroll: Vertical
    Float: No
    Common Border: Yes

    [Line:KA Invoice Body Coloumns]
    Left Field: KA SrNo, KA Item Description,
    Right Field: KA Billed Qty, KA Rate, KA Gross Amt
    Space Top: 0.25

    Local: Field:KA SrNo: Width: 2
    Local: Field:KA Item Description: Width:30
    Local: Field:KA Billed Qty: Width: 15
    Local: Field: KA Rate: Width: 15
    Local: Field:KA Gross Amt: Width: 10.3

    Local: Field:KA SrNo: Border: Thin Right

    Local: Field:KA Billed Qty: Border: Thin Left
    Local: Field: KA Rate: Border: Thin Left
    Local: Field:KA Gross Amt: Border: Thin Left

    [Field: KA Sr NO]
    Use: Simple Field
    Set as: $$Line
    Format: "No Zero"
    Style:p9
    Align: Center

    [Field:KA Item Description]
    Use: Simple Field
    Set as: $StockItemName
    Style: P9
    ; Full Width: Yes
    Line:1

    [Field:KA Billed Qty]
    Use: Qty Primary Field
    Set as: $BilledQty
    Style:p9

    [Field:KA Rate]
    Use: Rate Price Field
    Set as: $Rate
    Style:p9

    [Field:KA Gross Amt]
    Use:Amount Forex Field
    Set as: $Amount
    Style:p9

    [Part:nGSTanalisysBankdetailsledgerentries]
    Left Part:VCH GST AnalysisDetails
    Border: Thick Cover
    Common Border:Yes

    ;[#Part:VCH GST AnalysisDetails]

    [#Part:VCH GST AnalysisDetails]
    ;Delete:Border: Thin Box
    ;Width:100% Page


    [Part:KA Invoice Total]
    Right Part: KA Ledger Entries
    Left Part: KA Invoice Sing Off
    Border: Thick Box

    [Part:KA Ledger Entries]
    Line:nGrossTotal,KA Ledger Entries
    Repeat:KA Ledger Entries:Ledger Entries
    Float: No
    Common Border: Yes
    Bottom Line: KA Invoice Total

    [Style:nStyleGross]
    Font:"Calibri"
    Height:10
    Bold:Yes

    [Line:nGrossTotal]
    Field: nGrossTotalTitle, nGrossTotalAmt
    Border: thick Bottom
    Height:5 mms
    [Field:nGrossTotalTitle]
    Use: Simple Field
    Set as:"GROSS TOTAL"
    Style: nStyleGross
    Width:20.7
    ;Border: Thick Bottom

    [Field:nGrossTotalAmt]
    Use: Amount Field
    Set as: $$CollAmtTotal:InventoryEntries:$Amount
    Style: nStyleGross
    Width:10
    Border: Thin Left

    [Line: KA Ledger Entries]
    Remove if : $LedgerName = $PartyLedgerName
    Field: KA Ledger Name, KA Ledger Amount
    Space Top: 0.5
    Border: Thin Bottom

    [Field: KA Ledger Name]
    Use: Simple Field
    Set as: $LedgerName
    Style:p9B
    Width: 20.7
    Border: Thin Left

    [Field:KA Ledger Amount]
    Use: Amount Field
    Set as: $Amount
    Style:p9B
    Width: 10
    Border: Thin Left
    Align: Right

    [Line:KA Invoice Total]
    Field: KA Invoice Total Title, KA Invoice Total Amt
    Space Bottom:0.25

    [Field:KA Invoice Total Title]
    Use: Simple Field
    Set as:"INVOICE TOTAL"
    Style: Large Bold
    Width:20.7

    [Field:KA Invoice Total Amt]
    Use: Amount Field
    Set as: $Amount
    Style: Large Bold
    Width:10
    Border: Thin Left

    [Part:KA Invoice Sing Off]
    Part: KA Amount In Word and Declaration, KA Invoice Sing Off Part
    Vertical: Yes

    [Part:KA Amount In Word and Declaration]
    Line: KA Amount In Word

    [Line:KA Amount In Word]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "AMOUNT IN WORDS :" +" "+ $$InWords:$Amount
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Style: P9B
    Local: Field: Simple Field: Line:0

    [Part:KA Invoice Sing Off Part]
    Left Part: nBankDetails
    Right Part: For KA
    Border: thick Top

    [Part:nBankDetails]
    Line:nInvBankNameLine,nInvBranchLine,nInvACNoLine,nInvIFSCLine

    [Line: nInvBankNameLine]

    Fields : Medium Prompt,Name Field
    Local : Field : Medium Prompt : Set as : $$LocaleString:"Bank Name :"
    Local : Field : Medium Prompt : Style:p9B
    Local : Field : Medium Prompt : Width : 30 mms
    Local : Field : Name Field :Set as: "ABC BANK"
    Local : Field : Name Field :Style:p9
    Local : Field : Name Field :Align:Left
    Local : Field : Name Field : Width : 50 mms
    Space Top:0.50
    ;Space Bottom:0.25

    [Line: nInvBranchLine]
    Space Top:0.25
    ;Space Bottom:0.25
    Fields : Medium Prompt,Name Field
    Local : Field : Medium Prompt : Set as : $$LocaleString:"Branch Name :" ;;; To Display Bank Name
    Local : Field : Medium Prompt : Width :30 mms; 18% Page
    Local : Field : Medium Prompt : Style:p9B
    Local : Field : Name Field :Set as: "ABC BRANCH"
    Local : Field : Name Field :Style:p9
    Local : Field : Name Field :Align:Left
    Local : Field : Name Field : Width :50 mms

    [Line: nInvACNoLine]
    Space Top:0.25
    ;Space Bottom:0.25
    Fields : Medium Prompt,Name Field
    Local : Field : Medium Prompt : Set as : $$LocaleString:"A/c No. :" ;;; To Display A/c No.
    Local : Field : Medium Prompt : Width : 30 mms
    Local : Field : Medium Prompt : Style:p9B
    Local : Field : Name Field :Set as: "123456789"
    Local : Field : Name Field :Style:p9
    Local : Field : Name Field :Align:Left
    Local : Field : Name Field : Width : 50 mms

    [Line: nInvIFSCLine]
    Space Top:0.25
    ;Space Bottom:0.25
    Fields : Medium Prompt,Name Field
    Local : Field : Medium Prompt : Set as : $$LocaleString:"IFS Code :" ;;; To Display Branch & IFS Code
    Local : Field : Medium Prompt : Width : 30 mms
    Local : Field : Medium Prompt : Style:p9B
    Local : Field : Name Field :Set as: "ABC123456"
    Local : Field : Name Field :Style:p9
    Local : Field : Name Field :Align:Left
    Local : Field : Name Field : Width : 50 mms


    [Part:For KA]
    Line: For KA,
    Bottom Line:KA Authorised Signatory
    Border: Thick Left

    [Line: For KA]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "For" +" "+ @@CmpMailName
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Style: P9B
    Local: Field: Simple Field: Align: Center
    Space Top: 1

    [Line:KA Authorised Signatory]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "Authorized Signatory"
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Style: P9B
    Local: Field: Simple Field: Align: Center
    ;Space Top:3
    Space Bottom:0.50

    [Part:KA Goods Sold]
    Line:KA Juridiction

    [Line:KA Juridiction]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "ABC Jurisdiction"
    Local: Field: Simple Field: Align: Center
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Simple Field: Style: P9B
    ;
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [System: Variables]
    SAPrintCopies : 3
     


  5. Naitesh

    Naitesh Member


    thank you Sir
    i used this like below but not result

    [System: Variables]
    SAPrintCopies : 3


    [#Form : Sales Color]
    Delete : Print
    Add : Print : nInvA

    [Report :nInvA]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : nInvA
    PrintSet :##SAPrintCopies

    i also tried
    PrintSet :##SAPrintCopies:Company:##SVCurrentCompany
    but only one copy shows
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    have u tried going beyond that level............ maybe it shows display 1 page...but it can print 3 pages............
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Also try.........\

    [Report :nInvA]
    Set : SAPrintCopies : 3

    Remove......PrintSet :##SAPrintCopies
     


  8. Naitesh

    Naitesh Member


    Thank You Very Much Amit Sir
    it is done By Your Given code

    [Report :nInvA]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : nInvA
    Print Set : SAPrintCopies : 3

    now it shows in preview and Print
    Problem Solved

    i so much Respect you valuable Time
    Thank You Very Much
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You are welcome.
    So why was it not working earlier..............???
     


  10. Naitesh

    Naitesh Member


    [Report :nInvA]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : nInvA
    Print Set : SAPrintCopies : 3

    i was trying
    Print Set : ##SAPrintCopies : 3
     


  11. Mohan.S

    Mohan.S Member


    Dear Sir,
    The same method we are printing 2 forms in sales invoice report.

    in sales invoice we print invoice and delivery note.
    but we need sales invoice in 2 copy and delivery note in 1 copy. how to write this code.

    Thanking you.
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Make 2 forms for printing as per code above..... after Invoice is printed with 2 copies call FORM # 2 for Delivery note printing with 1 copy.
     


  13. Mohan.S

    Mohan.S Member


    Thanking you sir
     


  14. velan

    velan New Member


    any one help me
    i want first copy original for buyer
    and second copy triplicate for supplier copy in default tally invoice
     


  15. Jay kumar tailor

    Jay kumar tailor Active Member


    Option by default available in print settings

    Set Number Of Copies To Print: 2
    And Set Transporter Copy : No
    printing config.JPG
     
    Last edited: Jun 17, 2019


Share This Page