Get Ledger journal transactions payment marked invoices for posted and non posted
// Code from customer payment journal report --CustPaymentJournalDP private LedgerJournalTable ledgerJournalTable; private LedgerJournalTable tmpLedgerJournalTable; private LedgerJournalTrans ledgerJournalTrans; private LedgerJournalTrans tmpLedgerJournalTrans; private CustTrans tmpCustTrans; private CustTrans custTrans; private CustTransOpen custTransOpen; private CustSettlement custSettlement; private SpecTrans specTrans; private LedgerJournalId lastJournalNum; private AccountNum lastAccountNum; private Amount sumPaymSettleAmountCur; private CustPaymentJournalTmp custPaymentJournalTmp; private RecId ledgerJournalTransRecId; private Query query; while (qr.next()) { tmpLedgerJournalTable = qr.get(tmpL...