-
-
Save elranu/3740214 to your computer and use it in GitHub Desktop.
How a General Journal Line is related with a Ledger post (GeneralJournalEntry)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LedgerJournalTable jourTable, origJornalTable; | |
LedgerJournalTrans jourTrans, origJournalTrans; | |
SubledgerVoucherGeneralJournalEntry jourLink; | |
; | |
origJornalTable = LedgerJournalTable::findByGeneralJournalEntry(journalEntry); | |
if(origJornalTable){ | |
select * from origJournalTrans where origJournalTrans.JournalNum == origJornalTable.JournalNum | |
join jourLink where jourLink.GeneralJournalEntry == journalEntry.RecId && origJournalTrans.Voucher == jourLink.Voucher; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment