Because there is no field defined for Daybook........ define a field to display cheque no. in daybook. Only column heading defined in daybook.
[#Line: DSP VchAccTitles] Add : Fields : AFter : DSP VchAcctTitle : TEPLChequeNoTitle [#Line: DB Title1] Add : Fields : AFter : Dsp VchAcctTitle : TEPLChequeNoTitle [Field : TEPLChequeNoTitle] Set as : "Cheque No." Skip : Yes Width : 8 [#Line: DSP VchDetail] Add : Right Fields : Before : DSP Vchtype : TEPLChequeNoFld [Field : TEPLChequeNoFld] Use : Short Name Field Set as : $AllLedgerEntries[-1].BankAllocations.INSTRUMENTNUMBER Skip : Yes Align : Right Width : 6 [#Collection: Vouchers of Ledger] Fetch : AllLedgerEntries.BankAllocations.INSTRUMENTNUMBER [#Collection: Daybook Vouchers of Company] Fetch : AllLedgerEntries.BankAllocations.INSTRUMENTNUMBER
[#Line: DSP VchAccTitles] Add : Fields : AFter : DSP VchAcctTitle : TEPLChequeNoTitle [#Line: DB Title1] Add : Fields : AFter : Dsp VchAcctTitle : TEPLChequeNoTitle [Field : TEPLChequeNoTitle] Set as : "Cheque No." Skip : Yes Width : 8 [#Line: DSP VchDetail] Add : Right Fields : Before : DSP Vchtype : TEPLChequeNoFld [Field : TEPLChequeNoFld] Use : Short Name Field Set as : $AllLedgerEntries[-1].BankAllocations.INSTRUMENTNUMBER Skip : Yes Align : Right Width : 6 [#Collection: Vouchers of Ledger] Fetch : AllLedgerEntries.BankAllocations.INSTRUMENTNUMBER [#Collection: Daybook Vouchers of Company] Fetch : AllLedgerEntries.BankAllocations.INSTRUMENTNUMBER
I do not have necessary data to check the above TDL.. [#Line: DSP VchDetail] Add : Right Fields : Before : DSP Vchtype : TEPLChequeNoFld Is the above Line and Field common in DayBook also?? If not, then you need to find the required and add field "TEPLChequeNoFld" in Daybook also.
Perfect......also check if it works for receipt voucher as well...........in this case the party's cheque # Also to enhance this report....in case Bank name is not apparent from Vocuher #, you can introduce a short name field for Bank name+Chq i.e. BOB-1234567
Can you try on your own........... Hint : If $$IsPayment:$VoucherTypeName then <so n so> else if If $$IsContra:$VoucherTypeName then <so n so> Try your level best.................. Don't be afraid of experimentation.........
Ms. Devaki...... A challenge your way.... If a payment voucher is passed as under: ABC & Co. Dr Rs.75000/- Cr. Bank A/c Rs.60000/- Cr Discount recd Rs.10000/- Cr. adjustments Rs.5000/- Then it will not show.... coz Bank is 2nd line and not last line............. So solve this.
use like this......... $AllLedgerEntries[1, @@IsBankLdgr].BankAllocations[1].InstrumentNumber [System : Formula] IsBankLedgr : $$IsLedOfGrp:$LedgerName:$$GroupBank OR $$IsLedOfGrp:$LedgerName:$$GroupBankOD Above is just an example..........
I also added [#Collection: Vouchers of Group] Fetch : AllLedgerEntries.BankAllocations.INSTRUMENTNUMBER
If a payment voucher is passed as under: ABC & Co. Dr Rs.75000/- Cr. Bank A/c Rs.60000/- Cr Discount recd Rs.15000/-
just change [Field : TEPLChequeNoFld] Use : Short Name Field Set as : $AllLedgerEntries[-2].BankAllocations.INSTRUMENTNUMBER Skip : Yes Align : Right Width : 6