Thank you for the detailed answer.
I have already achieved the relationships that you mentioned in the points from 1 to 3.
I have to track the Purchase Order through the following stages:
Purchase Order -> Goods Receipt Note -> Prepayment -> Invoice -> Payment
I have achieved the following relationships:
PurchTable[PurchId] -> PurchLine[PurchId]
VendPackingSlipJour[RecId] -> VendPackingSlipTrans[VendPackingSlipJour]
VendInvoiceJour -> VendInvoiceTrans (Relationship based on the columns that you mentioned in point 3)
PurchLine[InventTransId] -> VendPackingSlipTrans[InventTransId]
VendPackingSlipTrans[InvoiceTransRefRecId] <- VendInvoiceTrans[RecId]
PurchLine[InventTransId] -> VendInvoiceTrans[InventTransId]
These represent the Purchase Order -> Goods Receipt Note -> Invoice, and I can track and visualize PO in these 3 stages in Power Bi.
So I am not able to figure out what tables should I use to go from Invoice to Payment process tracking.
Also there is prepayment stage, where I am not able to troubleshoot that which tables are involved.
I also have VendTrans, LedgerJournalTable, LedgerJournalTrans tables, but not sure if I need those in my tracking process.
Are there other tables that I am supposed to use to track the payment and prepayment?