;; 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 SP VchNumberTitle SP VchRefTitleFld ;; For adding Ref No. Title Field to display title [Field: DSP VchRefTitleFld] Use :Short Name Title Field Set as :"Ref No." Width @DSPNumberWidth Style :Normal Align :Center ;; Modify Default definition line to add Ref No. [#Line: DSP VchDetail] Add :Right Field :After SP VchNumber :VchRefNumberFld ;; For adding Ref No. data field to display Ref No. [Field: VchRefNumberFld] Use :Short Name Title Field Set As :$Reference Width @DSPNumberWidth Color :Red Background :Yellow Style :Normal [#Collection: Vouchers of Ledger] Fetch :Reference
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.
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.