What Posts to the Ledger, and Where Balances Come From
Which document wrote this figure, and did its posting run? That is the question to ask of any ledger figure that looks wrong, and this page gives you what you need to answer it: which documents write a journal and how, what posts nothing, when cost of sales arrives, where each kind of balance is kept, what a missing default or cashbook costs you, why a closed month stops agreeing with the ledger, and the jobs none of the finance applets do for you. It is for whoever keeps the books or is asked to explain them. The module overview routes you to the applets and guides.
One month that did not reach the ledger
In March GadgetSphere opened its twelfth Klang Valley branch, GS-KV-12, and added an e-wallet payment button there.
Nobody gave that settlement method a cashbook. Every cash bill paid with it finalised normally. The two jobs that run
after FINAL, one to write each bill’s journal and one to write its cashbook line, then refused every bill with
MISSING_CASHBOOK: STL_MTHD, and nobody at the till saw a message. The month-end check found 41 cash bills, RM 18,420
of sales, that were in the sales report and in neither the ledger nor the cashbook.
Each section below explains one part of that month. What posts to the ledger says why FINAL succeeded when the journal did not. The balances says why the sales report and the ledger can disagree. What a missing default or cashbook costs you says what brings both back. Set of Books › How you know a month is really closed works the repair in full. The last two sections cover what happens after the close.
What posts to the ledger — and what does not
The server builds a document’s journal from one table of posting rules, which has seven entries. If a document type is not in that table — or does not fall through to one by name — it does not post through this path.
| Handler | Documents that use it | Journal at FINAL (net) |
|---|---|---|
SALES | Sales Invoice, POS cash bill, Sales Return, Sales Credit / Debit Note, Sales Refund Note, and anything else whose type name contains SALES | Dr DEBTOR / Cr SALES, Cr OUTPUT_TAX; payments taken on the document debit their settlement accounts instead, so a fully paid till sale has no DEBTOR line (nothing posts to SALES_DISCOUNT: a line discount is already netted into the line; return lines to SALES_RETURN — except the Refund Note, whose lines land in SALES, a known defect). No cost-of-sales line: cost of sales reaches the ledger once a month, from Month End Processing |
PURCHASE | Purchase Invoice, Purchase Return, Purchase Debit / Credit Note, and anything whose type name contains PURCHASE | Dr PURCHASE, Dr INPUT_TAX / Cr CREDITOR; returns to PURCHASE_RETURN. Nothing posts to PURCHASE_DISCOUNT: a line discount is already in the line’s net amount, and a group discount posts to PURCHASE. Forex gain or loss is a separate journal each contra writes, not part of this one |
INTERNAL_PURCHASE_GRN_STOCK_IN | Purchase GRN Stock In only — the plain Purchase GRN is signum 0/0 and posts nothing | Dr INVENTORY_NOT_INVOICED / Cr CREDITOR_NOT_INVOICED — the GR/IR (Goods Received / Invoice Received) accrual. Its linked Purchase Invoice (no stock-in) clears the pair at its own journal’s net amount, not the GRN’s, so any difference stays on both accounts |
INTERNAL_RECEIPT_VOUCHER | Receipt Voucher (Internal) | Dr cashbook GL (one line per settlement) / Cr DEBTOR; charges to SETTLEMENT_CHARGES |
INTERNAL_PAYMENT_VOUCHER | Payment Voucher (Internal) | Dr CREDITOR or the expense lines / Cr cashbook GL; charges to SETTLEMENT_CHARGES |
PURCHASE_CONSIGNMENT | The Consignment GRN and the Consignment Return in the Purchasing module. The Consignment Billing posts through PURCHASE and then clears this pair; a Consignment GIN has no rule of its own and falls through to PURCHASE, a known defect | CONSIGNMENT_STOCK against CONSIGNMENT_LIABILITY |
INTERNAL_STOCK_ADJUSTMENT | Stock Adjustment | Adjust-out: Dr STOCK_ADJUSTMENT / Cr stock (STOCK_BALANCE); adjust-in the reverse |
A goods or service line’s GL code comes from the line, else the header, else the item-company link, else the company default (a GRN Stock In and the consignment GRN and return skip the line’s code). An account-code item uses its own code in place of the default and is refused at FINAL without one (or by the posting job, if linked only for another kind of posting). Payment lines take the settlement method’s account, tax lines the tax default.
Every journal is checked before it is written: unequal
debits and credits throw TOTAL_DEBITS_AND_TOTAL_CREDITS_NOT_BALANCES, an empty journal throws
NO_JOURNAL_CREATED, and a missing entity default (DEBTOR*, CREDITOR*) throws
MISSING_DEFAULT_GL_CODE: <key>.
In all three cases FINAL has already succeeded: the checks run in the posting job FINAL starts, so the document stays FINAL with no journal and nobody sees a message.
Three more things write journals without a handler: a manual journal (keyed or imported in Ledger And Journal, validated balanced on the server), a Cash Transfer at FINAL (Dr the receiving cashbook’s GL / Cr the sending one’s), and the Fixed Asset Transactions tab (acquisition, adjustment, disposal), which assembles the lines in the browser and posts them directly.
What does not post
- Cost of goods sold at FINAL — it arrives with Month End Processing (When cost of goods sold reaches the ledger, next).
- The depreciation run does not yet post a usable journal (Fixed Asset › The depreciation journal). Post monthly depreciation as a journal.
- A Reimbursement Payment Voucher raises no creditor and no tax line, so a taxed expense line leaves it FINAL with no journal — Reimbursement Payment Voucher.
- Bank Reconciliation, Statement of Account, the three debtor/creditor report applets, Budgetary, Deposit and MY-SST post nothing; nor do a plain Purchase GRN, a Sales GIN, a Sales GRN or a claim (Claims module).
When cost of goods sold reaches the ledger
A sale’s journal has no cost line. BigLedger works out each sale’s cost as it posts (moving average, and FIFO where switched on) and writes it onto the invoice or cash bill line, so the margin report shows gross profit straight away (a back-dated purchase can rewrite it).
The ledger receives cost of sales when someone runs Month End Processing for a Set of Books, as one journal per ledger dated the last day of the month (plus one for each work-in-progress, raw-material, finished-goods or trade-in value a closing-stock record holds):
cost of sales = opening stock + purchases − purchase returns − closing stock + the net value the month’s stock adjustments and moving-average resets posted to the stock account (negative for a write-off)
Purchases and returns are the month’s net postings to the company’s default PURCHASE and PURCHASE_RETURN codes only; a purchase posted to any other code is not counted.
The last term keeps a stock-take write-off or a reset on the account it posted to, instead of counting it a second time in cost of sales. A RM 1,200 write-off lowers closing stock by RM 1,200, which on its own would raise cost of sales by RM 1,200; the write-off posted −RM 1,200 to the stock account, so the last term takes it back out and cost of sales does not move. An Adjust-In works the same way the other way round. This is the one statement of the formula; other pages link here.
The journal moves the month’s purchases and returns off their accounts, and the stock change off STOCK_BALANCE, into COGS, so it balances only when the company has those defaults. Without the COGS or the STOCK_BALANCE default it does not balance in a normal trading month, the server refuses it, and nobody is told: the run still reports success, and on a re-run the earlier cost-of-sales journal for that same month has already been deleted.
Nothing runs it on a schedule; processing a month again replaces its journal, so re-run it after a back-dated document. No setting posts cost per invoice or cash bill instead. The company’s Inventory Closing Base On setting chooses the cost that values closing stock (moving average when empty), and a non-zero manual closing-stock figure overrides it. Costing internals works an example.
What the formula cannot see
The formula takes two things on trust. Every unit you buy arrives through the default Purchase account, and every unit in the stock ledger belongs to you. Closing stock is every unit the company’s stock ledger holds, at every location, valued when the close runs, with no check of who owns it or whether you have been billed. Purchases are what the month posted to the two default accounts, and nothing else. Stock at a location of yours (a branch, a dealer you supply on consignment, the in-transit location) is yours, so counting it is right. These ordinary habits break one assumption or the other:
- Goods received on a GRN Stock In and not yet invoiced. They are in closing stock, and on your inventory-not-invoiced account, but not in purchases until the invoice posts. Cost of sales is low that month and high the month the invoice arrives.
- A supplier’s consigned goods on your shelf. They are in closing stock, and on your consignment stock account, but reach purchases only when the consignment billing posts. Cost of sales is low in the month they arrive and high in the month the billing posts, and the stock account is high while they are on hand.
- Stock that arrived with no purchase beside it, such as opening stock whose purchase document was later removed. Cost of sales is low in the month it lands, and the value stays in the stock account.
- A purchase posted to an item’s or a line’s own GL code. The goods are in closing stock, and the purchase is not counted.
- A manual journal posted to the default Purchase account. It is counted as a purchase, although no stock arrived.
- A Consignment GIN, where the company posts journals for it. It uses the purchase posting rule, so unless a line or item GL code overrides it, it credits the default Purchase account with the goods’ value, although they were never a purchase. This is a known defect BigLedger is tracking: by design the GIN reverses the consignment pair.
- A manual closing value of zero. It is ignored, and the calculated closing stock stands.
BigLedger’s design for the close takes goods received and not invoiced, and unbilled consigned goods, back out of closing stock. That subtraction is planned and not yet built. When a month’s figure looks wrong, This month’s cost of sales looks wrong rebuilds the six figures and finds which one moved. For goods received and not invoiced, it also sets out the manual closing value that makes a month stand on its own; that value also becomes the next month’s opening stock.
The balances, and the record each one is kept in
| Balance | Source of truth | Read by |
|---|---|---|
| A customer’s or supplier’s outstanding amount | The open amount plus contras on each FINAL document header; contras from receipt/payment vouchers, credit notes and the report applets reduce it | Debtor Report, Creditor Report, Debtor and Creditor Report, Statement of Account, and the contra screens on a receipt or payment voucher |
| A cashbook’s balance | The cashbook transaction lines written when a Receipt Voucher, Payment Voucher, POS settlement, Cash Transfer or Cash Adjustment reached FINAL (a void cancels each line, usually by writing a reversing line beside it, so the voided amount nets to nothing) | Query Cashbook Transaction, Cash Level, Bank Reconciliation |
| A GL account’s balance | ACTIVE journal lines in Ledger And Journal | Sub Ledger, the Profit Loss Report (live), Financial Report snapshots (via month-end summaries) |
| A budget register’s balance | Allocated less used on the register, moved by virements, adjustments and invoice lines | Budget Report |
Each of those is worked out live, from the rows underneath it. The figures on your reports mostly are not — the Trial Balance, Profit and Loss and Balance Sheet read a stored monthly summary, the historical aging reads a monthly photograph, and the SST-02 reads the copy of each document’s taxed lines written when you filed it. So a document edited after it was filed for SST changes the SST reports and not the return.
Which figures BigLedger stores, and which it works out fresh explains which is which across all six places that make that trade-off, and how to tell a stale figure from a wrong one. If you already have a figure that will not tally, start instead from the symptom: when two numbers don’t tally.
The three are maintained separately. A receipt voucher moves all of the first three at once; a manual journal moves only the third. That is why “the GL bank balance is right but the cashbook is wrong” and “the customer’s statement is right but the debtor control account is wrong” are different problems with different fixes. Two causes come up again and again:
- The aging and the Balance Sheet’s receivables line read different records. The aging is built from documents, the Balance Sheet from journals. A manual journal posted straight at the debtor control account (a write-off, an opening correction) is in one and can never be in the other.
- A manual journal against the bank’s GL code never reaches Bank Reconciliation, because it writes no cashbook line. Bank charges and interest have to go in as a voucher or a cash transfer to be reconcilable.
What a missing default or cashbook costs you
Two things must exist before anything posts. Each company needs its Default GL Codes (in Chart of Account), and every payment button needs a cashbook behind its settlement method. Without either, the document still finalises. A missing receivable or payable default costs it its journal; a missing sales, purchase or tax default costs only that line, and the journal still posts, balanced by changing the receivable or payable line by that amount (on a paid till sale, a stray credit to the customer; with nothing left, no journal) (Ledger And Journal).
A missing cashbook costs it its cashbook line and, unless the settlement method has a sub-ledger of its own, its journal too, so the money is missing from the cashbook, Cash Level, Bank Reconciliation and usually the ledger.
Adding the cashbook later re-posts no journal by itself (a cash transfer’s excepted). The cashbook line usually comes back by itself: the cashbook watchdog, a clock BigLedger installs by default, retries about every 15 minutes each FINAL document with a settlement amount and no cashbook line, once it has gone 20 minutes unchanged and unless it failed four times in the last 24 hours. A foreign-currency document is skipped, by the watchdog and by hand: its base-currency copy carries the line.
Still missing an hour later, or with the clock off, repair it by hand. A document with some of its cashbook lines and not others is in neither repair list: ask BigLedger support.
By hand it is two repairs: Missing Journal Create rebuilds only the journal. The cashbook line comes back from Missing Cashbook Resolve in Trace Document (cash bills, receipt and payment vouchers) or, for a date range, the Data Fix applet’s Missing Cashbook tab (those, cash transfers and sales invoices) (worked example). Missing Journal takes sixteen types: sales and purchase invoices, returns, credit and debit notes, cash bills, payment and receipt vouchers, stock adjustments, GRN Stock In, cash transfers and moving-average resets. Refund notes, reimbursement vouchers and consignment documents are not.
A document whose checks read Unsupported document type and that has no journal: consignment GRNs, returns and billings are posted from the Stock Flow Report’s Difference Listing (its Purchase Consignment row, CREATE, which first resets GL-code lines to their items’ codes and may leave them reset if it fails: Financial Report); for refund notes, consignment GINs and reimbursement vouchers, ask BigLedger support.
A journal that posted short needs Trace Document’s Repost, beside Posting Journal once it reads POSTED (not for a foreign-currency document or its copy; on a cash transfer or a moving-average reset it does nothing). It deletes every journal linked to the document, a voided document’s reversal included, so never Repost a voided document, and builds one again. A failed Repost shows no message and may already have deleted the journals: check Journal Txn afterwards.
One missing default stops every document that needs it. The posting job reads the company’s defaults when it builds each journal; they are not stored on the document. So with no
DEBTORdefault, every sales document that leaves an amount on a trade-debtor customer (an invoice, a return, a credit note, a part-paid till sale), and every receipt voucher from one, is refused its journal, all at once.Changing a default changes what posts next. Journals already written keep the old account, except the month-end cost-of-sales and retained-earnings journals: the next PROCESS rewrites them, counting purchases only on the new
PURCHASEcode and stock only on the newSTOCK_BALANCEcode, so re-closing a month posted under an old code misstates its cost of sales.
The check that proves a month reached the ledger
A month is closed when somebody has checked it, not when Month End Processing reports success. In Ledger And Journal, open Error Checking > Missing Journal, set the month’s dates and run it once for each Server Doc Type you use: an empty list is the first check, not proof, and Journal Not Balance should be empty too.
A search that fails also shows an empty list, with no message. For most types the list shows documents never marked posted, so it misses one whose Repost failed after deleting its journal, and it does not cover consignment documents or refund notes: trace those one by one. Then confirm the close wrote its journals, tie the aging and each cashbook to their control accounts, and check that Bank Reconciliation Report 1 shows no unexplained variance.
Lock the month only then, and at the next month-end confirm its Trial Balance has not moved. Each step, with who runs it and when, is on Set of Books › How you know a month is really closed, before you lock it.
Why a closed month stops agreeing with the ledger
It is the 9th of April. GadgetSphere ran Month End Processing for March last week, has not locked it yet, and finished its bank reconciliation. This morning a supplier invoice dated 24 March arrives, a branch reports a sale keyed to the wrong date, and somebody voids a cash transfer from mid-March. You post all three. By the afternoon the questions are “the financial report and the ledger don’t agree” and “the bank reconciliation was tallied and now it isn’t.”
Nothing is broken. The ledger moved and the stored March summary did not, and it stays as it was until somebody runs Month End Processing for March again, then every later closed month in order (each month starts from the one before), and regenerates the snapshots. A void counts too: where the original journal posted, its mirror (every debit and credit swapped) carries the original document’s transaction date, so voiding in April a document dated in March moves March (What a Void Undoes). The four steps, in their fixed order, are on Process, report and lock › If something lands in March after you have closed.
The same shape, slower, catches a business that started on BigLedger in the middle of its year. If the trial balance is out by the same amount every month from go-live onwards, look at the opening balance first. An amount keyed as an opening balance on a sales or expense account is dropped at the first month end, because only balance-sheet accounts carry forward. Last year’s result belongs in retained earnings before day one. Reviewing the books has the one-look test.
What none of the finance applets will do, and who does it instead
- Close the month. Nothing runs Month End Processing for you. The accountant runs it for each Set of Books, months in order, after the month’s last posting, and checks the closing journals each ledger should have. They know it is done when the Trial Balance footer balances for every month, not only the last, and when the check above passes.
- Depreciate an asset. The Fixed Asset depreciation run cannot post a usable journal: with the asset’s two depreciation subledgers unset it writes an empty header, and setting them through the API does not rescue it, because the expense line is then refused (why). A run can still move the asset’s accumulated depreciation and its run line without moving the ledger, so the three are reconciled by hand. Whoever owns the fixed-asset ledger posts each month’s depreciation as a manual journal in Ledger And Journal, from the schedule, and ties accumulated depreciation to the register at year end.
- Put deposit interest in your accounts. The Deposit applet’s interest schedule posts nothing. At each month end, finance accrues it by manual journal; the cash itself arrives on the receipt voucher linked to the deposit.
- Prepare the SST return. The tax is on each document line, from its tax code. MY-SST only decides which filed lines land in which return. Export the SST-02 PDF before you lock a cycle, because a locked cycle’s Part A is blank, and check the cycle’s filed transactions after every void.
- Tie the sub-ledgers to the control accounts (why they differ). The receivables and payables clerks do it in the first days of the next month, listing each manual journal at the control account as a reconciling item, and the finance manager initials the sheet. Reviewing the books gives the procedure.
Reports and connectors this module does not have
Two registry applets, Autocount (AccountConnector_Autocount_Applet) and SQLAccount
(AccountConnector_SQLAccount_Applet), have no page: what they serve is a customer-profile screen,
not an accounting connector, and whether they are product or a customer build is an open question.
Until that is decided, no page in this module describes an AutoCount or SQL Account import.
What has no report. There is no cash flow statement: build it from two balance sheets and the period’s profit and loss in a spreadsheet. There is no cost-of-sales-by-item report other than the Gross Profit listing behind the Profit Loss Report, and no budget commitment or reserved-amount report (a reserved amount exists on the register and nothing writes to it).
Group statements add up; they do not eliminate. Link several companies’ ledgers to one Set of Books and its balance sheet and profit and loss add those companies together, each ledger closed with its own company’s defaults and summed in its own currency with no conversion, so link only ledgers that share one. Nothing removes intercompany sales, purchases or balances, so the group total overstates revenue by every intercompany sale. Agree the intercompany balances between each pair of companies and eliminate them in your consolidation working (Reviewing a Set of Books, Step 6). BigLedger is tracking both the cash flow statement and intercompany elimination.
Related documentation
- Financial Accounting module — the applets and guides for this ledger.
- Ledger And Journal and Financial Report — the repair screens named above.
- What a Void Undoes and How work actually runs — the void journal and the posting job.
- The guides that put this to work: Month-end closing (finding a document with no journal, Stage 4), Journal Entries (what a manual journal moves and what it does not) and Bank Reconciliation (why the ledger and the cashbook can disagree).