Skip to content

Instantly share code, notes, and snippets.

@elranu
Created September 17, 2012 22:33
Show Gist options
  • Save elranu/3740195 to your computer and use it in GitHub Desktop.
Save elranu/3740195 to your computer and use it in GitHub Desktop.
How a Ledger post (GeneralJournalEntry) is related with a General Journal Ledger.
public static LedgerJournalTable findByGeneralJournalEntry( GeneralJournalEntry journalEntry )
{
LedgerJournalTable journalTable;
LedgerEntryJournal journalLink;
;
select firstOnly * from journalLink where journalLink.RecId == journalEntry.LedgerEntryJournal
join journalTable where journalTable.JournalNum == journalLink.JournalNumber;// &&
//journalTable.dataAreaId == journalLink.LedgerJournalTableDataAreaId;
return journalTable;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment