Journal posting is the next step once the journal has been created. Although most of the time journals are posted from the user interface, it is also possible to perform the same operation from the code.
In this recipe, we will explore how a general journal can be posted from the code. We are going to process the journal created in the previous recipe.
Carry out the following steps in order to complete this recipe:
- Navigate to
General ledger
|Journals
|General journal
and find an open journal. Create a new journal if none exists. Note the journal's number.
- In your solution, add a new runnable class named
LedgerJournalPost
with the following code snippet (replace the00472
text with the journal's number from the previous step):
static void LedgerJournalPost(Args _args) { LedgerJournalCheckPost LedgerJournalCheckPost; LedgerJournalTable LedgerJournalTable; LedgerJournalTable = LedgerJournalTable:...