Voucher Reference No.

Discussion in 'Free Source Codes' started by M. Sajid Razzaq, Dec 1, 2021.

    

  1. I want to print out party ledgers with voucher reference no. How is possible ?
     


  2. Surendra Rajpurohit

    Surendra Rajpurohit New Member


    its Possible just with small code
     


  3. Ozair Ahmad

    Ozair Ahmad New Member


    ;; Developer Name: Ozair Ahmad
    ;; Phone No.: 7007427343
    ;; E-Mail : blissghazal@gmail.com
    ;; Purpose --> For displaying Ref. No. in Voucher Register

    ;; Modify Default definition line Title to add Ref No.
    [#Line: DBTitle1]
    Add :Right Field :After :DSP VchNumberTitle :DSP VchRefTitleFld
    ;; For adding Ref No. Title Field to display title
    [Field: DSP VchRefTitleFld]
    Use :Short Name Title Field
    Set as :"Ref No."
    Width :mad:@DSPNumberWidth
    Style :Normal
    Align :Center


    ;; Modify Default definition line to add Ref No.
    [#Line: DSP VchDetail]
    Add :Right Field :After :DSP VchNumber :VchRefNumberFld
    ;; For adding Ref No. data field to display Ref No.
    [Field: VchRefNumberFld]
    Use :Short Name Title Field
    Set As :$Reference
    Width :mad:@DSPNumberWidth
    Color :Red
    Background :Yellow
    Style :Normal

    [#Collection: Vouchers of Ledger]
    Fetch :Reference
     



  4. Dear Ozair Ahmad Sir,

    I use these codes, but answer is not correct. please see attached file
     

    Attached Files:



  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    The referred line -- [#Line: DBTitle1] belongs to Daybook.

    Find the correct one for "Ledger vouchers" Report and add the TITLE field in that LINE and it will work fine.
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    The alignment is not proper as there is no corresponding changes in the TITLE line........for LEDGERS.........

    The code is made for voucher register and so it will work properly in any register.

    For LEDGERS ..... change the LINE name accordingly and add your TITLE.
     



  7. Dear Amit Kamdar Sir,

    Thank you very much for correction.
     

    Attached Files:



  8. Ozair Ahmad

    Ozair Ahmad New Member


    Thanks for Amit Kamdar Sir who makes the code as you want.
     


Share This Page