Customized receipt Voucher Print in Tally

Discussion in 'Tally Developer' started by Nirav Merchant, Mar 6, 2013.

    
  1. Nirav Merchant

    Nirav Merchant Active Member


    ;; Sample Code customize receipt print in Tally

    [#Form: Receipt Color]

    Delete :pRint
    Add : Print : RCPT JLC
    ;;PrintAfterSave : ##PPRCTPrintAfterSave OR ##PRCTPrintAfterSav

    [Report : RCPT JLC]

    Object : Voucher
    ;; ;; PrintSet : Report Title : "Receipt"
    Filtered : Yes
    Print : VCHPrintConfigure
    ;; ;; Empty : (NOT ##PRCTPrintEnabled) OR (NOT ##PRCTPrintAfterSave AND $$InAcceptMode) OR $$IsEmpty:$VoucherChequeName

    [Form : RCPT JLC]
    Parts : RcptCOmpanyAddr, RcptNoDate, Rcpt Body, RcptFoot
    Width : ##PRCTWidth inch
    Height : ##PRCTHeight inch
    Space Top : ##PRCTSpaceTop inch
    Space Bottom: 0.25 inch
    ;; Space Left : 0.75 inch
    Space Right : 0.25 inch
    ;; Width : 200 mms
    Space Left : 30 mms
    HorizontalAlign : Centre

    [Part : RcptCompanyAddr]
    Lines : Rcpt Company, Rcpt Addr
    Repeat : Rcpt Addr : Company Address
    Local : Field : Simple Field : Align : Centre
    Local : Field : Simple Field : FullWidth : Yes
    HorizontalAlign : Centre

    [Line: Rcpt Company]

    Fields : Simple Field
    Local : Field : Simple Field : Set as : ##SVCurrentCompany
    Local : Field : Simple Field : Style : Normal Bold

    [Line: Rcpt Addr]

    Fields : Simple Field
    Local : Field : Simple Field : Set as : $Address
    Local : Field : Simple Field : Border : Thin Bottom : $$Line = $$NumItems

    [Part : RcptNoDate]
    Lines : Rcpt NODate
    HorizontalAlign : Centre
    Border : Thin Bottom
    SpaceBottom : 0.5

    [Line : Rcpt NoDate]
    Fields : Simple Prompt, RcptNo
    RightFields : Info Field, RcptDate
    Local : Field : Simple Prompt : Info : "No. :"
    Local : Field : Info Field : Info : "Date :"

    [Field : Rcpt No]
    Set as : $VoucherNumber
    Style : Normal Bold

    [Field: Rcpt Date]
    Set as : $$String:$Date:UniversalDate
    Style : Normal Bold

    [Part : Rcpt Body]
    Parts : Rcpt Top, Rcpt Bottom
    Vertical : Yes

    [Part : Rcpt Top]

    Lines : Rcpt Payer, Rcpt PayerAddr, Rcpt Words ;;Rcpt Thru ;;, Rcpt Remarks
    Repeat : Rcpt PayerAddr : Party Address
    Local : Field : Short Prompt : Style : Normal Italic
    Local : Field : Short Prompt : Width : 15
    HorizontalAlign : centre

    [Line: Rcpt Title]

    Fields : Rcpt Title
    SpaceBottom : 2

    [Field: Rcpt Title]

    Set as : "RECEIPT"
    Wide Spaced : Yes
    Style : Large Bold
    Border : Thin Bottom
    Align : Centre
    FullWidth : Yes

    [Line: Rcpt Payer]

    Fields : Short Prompt, Rcpt Payer
    Local : Field : Short Prompt : Info : "Received with thanks from :"
    SpaceBottom : 0.25

    [Field: Rcpt Payer]

    Set as : $LedgerName ;;VoucherChequeName
    Style : Normal Bold
    ;; Border : Thin Bottom

    [Line : Rcpt PayerAddr]
    Fields : Short Prompt, Rcpt PartyAddr
    Local : Field : Info Field : Width : 17
    Local : Field : Info Field : Info : " "

    [Field : Rcpt PartyAddr]
    Set as:$Address
    ;; Border : THin Bottom

    [Line: Rcpt Words]

    Fields : Short Prompt, Rcpt Words
    Local : Field : Short Prompt : Info : "The sum of Rupees "
    SpaceBottom : 1

    [Field: Rcpt Words]

    Set as : $$InWords:#RcptAmount+" Only"

    Style : Normal Bold
    Lines : 0
    FullWidth : Yes
    ;; Border : Thin Bottom

    [Part : Rcpt Bottom]
    Parts : RcptBottomLeft, RcptBottomRight
    Vertical : No
    Local : Field : Short Prompt : Style : Normal Italic
    Local : Field : Short Prompt : Width : 15

    [Part : RcptBottomLeft]
    Lines : RcptThru1, Rcpt Thru2

    [Line: Rcpt Thru1]
    Local : Field : Short Prompt : Info : "by Cash / Cheque / D.D. No."
    Fields : Short Prompt

    [Field : Rcpt Thru1]
    Info : "by Cash / Cheque / D.D. No."

    [Line: Rcpt Thru2]
    ;; Field : Rcpt Thru2
    Fields : Short Prompt
    Local : Field : Short Prompt : Info : "in Full / part payment of "

    [Field: Rcpt Thru2]
    Info : "in Full / part payment of "

    [Part : RcptBottomRight]
    Line : Rcpt Remarks

    [Line: Rcpt Remarks]

    Fields : Rcpt Remarks
    SpaceBottom : 1

    [Field: Rcpt Remarks]

    Set as : $Narration
    Style : Normal Bold
    Lines : 0
    Width : 75 mms
    ;; Border : Full Thin Bottom

    [Part : Rcpt Foot]
    Lines : ForComp, RcptAmt, CompSign
    Border : Full Thin Top
    ;; SpaceTop: 6

    [Line : ForComp]
    Right Fields : ForComp
    SpaceBottom : 1

    [Field : ForComp]
    Set As : "For " + ##SVCurrentCompany
    Style : Normal Bold

    [Line : RcptAmt]
    Fields : AmtPrompt, RcptAmount

    [Field : AmtPrompt]
    Info : "Rs."
    Style : Normal Bold
    Align : Left

    [Field: RcptAmount]

    Use : Amount Base Field
    Set as : $$CollectionField:$Amount:1:AllLedgerEntries
    Align : Left
    Border : Thin Bottom

    [Line : CompSign]
    Fields : ChqRel, PrepCheck
    Right Fields : CompSign
    ;; Border : Thin Bottom

    [Field : ChqRel]
    Info : "Cheques are subject to realization."
    Align : Left
    Style : Small Bold

    [Field : PrepCheck]
    Info : "Accountant"
    SpaceLeft : 25 mms
    Style : Small
    Align : Left

    [Field : CompSign]
    Info : "Authorised Signatory"
    Align : Right
    Style : Small Bold

    [Border : Thin Top Left]

    Left : Thin
    Top : Thin, Full Length
     
    Manoj Garg likes this.


  2. GOURAV JAIN

    GOURAV JAIN Member


    Great Job Dear.....
     




  3. kpstup

    kpstup New Member


    Dear Sir
    its working good , but im using "Print After saving voucher" so party name not showing, printing like " Received With Thanks : Cash "
    Next time its working, how solve this problem sir?
     


  4. laxman

    laxman Member



    Sir,

    Will do to increase its height. Right now we have a page to print two copy paper sizes when using A 5.

    please guide us.
     


  5. Nirav Merchant

    Nirav Merchant Active Member


    U can give hight and width in Tally Default it will adjust
     


  6. Nirav Merchant

    Nirav Merchant Active Member


    check the code it picks up he height and width what u put in F12 config

    [Form : RCPT JLC]
    Parts : RcptCOmpanyAddr, RcptNoDate, Rcpt Body, RcptFoot
    Width : ##PRCTWidth inch
    Height : ##PRCTHeight inch
    Space Top : ##PRCTSpaceTop inch
     


  7. Ras Raj

    Ras Raj Member


    Dear Sir,
    In Sales colour, how can i set Height/Width/Top Margin/Left Margin, which i put in F12:Config
     


  8. NMS

    NMS Member


    Yes Mr Kpstup,
    Same Problem I Also facing When we use Print after save . party Name is Not Showing.then go to Daybook and Open that Receipt
    Now it is showing Party Name..
    Plz Any one Help me...
     


  9. hitarth

    hitarth Member


    Try $PartyLedgerName
     


  10. PURNA CHANDHAR

    PURNA CHANDHAR New Member


    dears,
    i having unique number for voucher, the need is, the unique number display in top right corner & the title as"PDA No:"(bold & font size 16) (above date)
    kindly, thanks.
     


  11. maniderik

    maniderik New Member


    Dear All, Receipt Voucher Printing in POS Invoice Format ?
     


  12. Pupesh Arora

    Pupesh Arora Member


    ;; Sample Code customize receipt print in Tally

    ;[Border : Thin Top Left]

    ;Left : Thin
    ;Top : Thin, Full Length




    Please note above code I have to comment the above to use the said Receipt print code. Tally says duplicate declaration of Border
     


  13. Pupesh Arora

    Pupesh Arora Member


    Receipt Title is not Printed on the Receipt
     


  14. Pupesh Arora

    Pupesh Arora Member


    I want to use Logo in the report;
    Also I want to print 2 copies of same receipt in One a4 page
     


  15. Pupesh Arora

    Pupesh Arora Member


    Which field is used for Bank Details, i.e Cheque No. Bank Name etc
     


  16. Pupesh Arora

    Pupesh Arora Member


    How to print duplicate Receipt in single Page
     


  17. kamal

    kamal Member


    DEAR SIR,
    PLZ HELP TO HOW TO SHOW COST CENTER DETAILS
     
    zakirhossain_diu likes this.


Share This Page