Hii,
I am developing Payment Voucher Report. RDP and SSRS.
Navigation (AP->Payments->Payment journal -> a posted journal -> Lines -> Print -> Payment Voucher Report).
The report has header and lines temp tables.
Header temp table will have Vendor id, name, bank, iban, total payment amount, amount in words, payee bank etc and I got all this data.
Line temp table will have all invoices settled in this voucher.
Line temp table fields: InternalInvoiceId, Invoice, CurrencyCode, PurchID, Full Invoice Amount, Remaining Amount, Amount to Apply etc.
I found the relation b/w LedgerJournalTrans and VendTrans. But this is returning LedgerJournalTrans transactions not invoices.
select vendTrans where vendTrans.LastSettleVoucher == ledgerJournalTrans.Voucher && vendTrans.RecId == LedgerJournalTrans.VendTransId;
Question: But I need Invoices transactions in VendTrans table for the posted voucher.
Please help to achieve it in x++ code.
Thanks,