Hi,
I have been asked to create a sql report from our AX 2012 database, to show invoices settled by payment journals in LedgerJournalTable/LedgerJournalTrans. There is a field on LedgerJournalTrans called MarkedInvoice, but if there is more than one invoice matched to the payment voucher, it just shows as "*"- I need to get the list of invoice numbers instead of the *
I managed to join to CustTrans table (LedgerJournalTrans.Voucher = CustTrans.Voucher), which works when the settlement and the matched invoices are all in the same company, but we have a lot of cross-company settlements so for those the voucher number from LedgerJournalTrans does not exist in CustTrans. I know that for cross-company settlements AX creates a new voucher somewhere, but I am not sure how to find that new voucher number, what tables to look in etc. Can anyone point me in the right direction please?
*This post is locked for comments
I have the same question (0)