Dear experts,
Can you help me to verify the following statements:
1) LedgerTrans table holding general ledger transactions in some previous versions of Dynamics 365FO (Dynamics AX 2009 and so on) is now replaced by GeneralJournalEntry and GeneralJournalAccountEntry tables.
2) By "subledger" we consider transaction tables actual for various modules. Am I right? For example, CustTrans, VendTrans, RPayTrans, TaxTrans and so on.
3) Let's suppose we have a TaxTrans record as an incoming parameter. And we have to fetch GeneralJournalAccountEntry records associated with this TaxTrans record. Does the following select statement make sense:
while select generalJournalAccountEntry
join generalJournalEntry
where generalJournalAccountEntry.GeneralJournalEntry == generalJournalEntry.RecId
exists join subledgerVoucherGeneralJournalEntry
where generalJournalEntry.RecId ==subledgerVoucherGeneralJournalEntry.GeneralJournalEntry
&& subledgerVoucherGeneralJournalEntry.Voucher == taxTrans.Voucher
&& subledgerVoucherGeneralJournalEntry.AccountingDate == taxTrans.TransDate
{
//do smth
}