Application of the Cosequential Model to a General Ledger Program V
The posting process has three cases:
If the ledger account number is less then the journal transaction account number, then print the ledger account balance and then read in the next ledger account and print its title line if the account exists.
If the account numbers match, then add the transaction amount to the account balance, print the description of the transaction, and read the next journal entry.
If the journal account is less than the ledger account, then it is an unmatched journal account. Print an error message and continue with the next transaction.