Skip to content

Inventory: core concepts

“Stock Availability shows 50 physical but 0 available. Where did it go?” “Which document actually takes stock out?” “My count and the stock report still disagree after a stock take.” Those three questions come up again and again about stock, and the seven ideas below answer all three. This page is for the stock controller or accountant in a multi-branch group who has to explain a stock number to somebody else: a branch manager, the finance manager, an auditor. Read it once, in about fifteen minutes, and the twenty-two applet pages stop being a list of screens.

The situation it was written for. It is the week before the auditors arrive at GadgetSphere. The stock account on the balance sheet says one figure and the stock report for the same date says another, and neither screen says why. Groups in exactly this position usually find the gap by hand, document by document, and then find it again the following year.

Every idea on this page is one of the reasons the two figures can differ. Most of them are not a fault: they are the price of a design choice, such as keeping a sale’s journal free of a cost that later documents would change, explained where it comes up. Where one is a known defect, the page says so (the Consignment GIN’s journal in §5).

1. The balance is a running total, not a stored number you can edit

There is no screen anywhere in BigLedger where you type a stock balance. The balance is the tip of a signed stock ledger — one row per item per movement — that the server appends to when a document is finalised. The Stock Balance applet is the enquiry over that total and nothing more.

    flowchart TD
  F["Document set to FINAL"] --> P1["Generic-document primary processor<br/>fans out to its subscribed jobs"]
  P1 --> P2["Inventory transaction line processor<br/>one or more signed ledger lines per stock line<br/>with a non-zero quantity signum<br/>(a package expands; a transfer adds its in-transit leg)"]
  P2 --> P3["Ledger line → current stock balance processor<br/>upserts the location row and the company row,<br/>updates the cost bases, then serial / batch / bin"]
  P3 --> B["Stock balance<br/>item × company × location"]
  P3 -.->|"cost flows back"| L["The document line's cost columns"]
  F -.->|"VOID"| V["Void processor<br/>works the document's lines out again<br/>and writes them <b>negated</b><br/>— nothing is deleted"]
  V --> B
  

Four consequences:

  • If a number is wrong, the fix is a document, never the screen. Usually a Stock Adjustment; a balance row that has drifted from its own ledger lines is rebuilt from them instead, by someone with access to the Data Fix applet’s stock repair (Stock Balance).
  • FINAL is not instant. The work happens in background processors. On a busy day the balance can lag the document by moments, and the cost on the document line is written after the ledger line, by a later job.
  • VOID does not delete history. It works the document’s movements out again from the document as it stands, negates them and writes them, marked as a void. The movement and its reversal both stay, so the item’s Stock Card tab shows both.
  • A backdated document is inserted mid-chain and the balance is re-projected from there, which is why backdating is expensive. The moving average replays by itself; FIFO does not. The item is only marked for a FIFO rebuild, which runs where the rebuild job is scheduled for your account or when somebody starts it (Costing internals).

Where a movement lands

The location on a ledger line is the first of these that is set: the line’s delivery location, then the line’s store, then the header’s store, then the branch’s default location. Most “the stock went to the wrong place” cases are a line with no location falling through to a branch default nobody had looked at. At GadgetSphere, a laptop invoiced at GS-PEN-01 with no store on the line or the header comes off whatever location the Penang branch names as its default, which may be the warehouse rather than the shop floor.

2. The quantity signum decides everything

Two numbers on a document type decide its effect: the quantity signum (does stock move, and which way) and the amount signum (does money move). A zero means that side does not move, with one exception: a Stock Adjustment carries amount signum zero, and its line values can still post a journal (§5). They are fixed in the backend for each document type — not settings, not per tenant, and the applet’s own copy is overwritten by the server on every save.

Moves stock in (+1)Moves stock out (−1)Moves nothing (0)
Purchase InvoiceSales InvoiceSales Order, Purchase Order, Quotation
Purchase GRN Stock InCash Billplain GRN and GIN, sales and purchase
Sales ReturnSales GIN Stock OutInvoice No Stock In / No Stock Out
Sales Refund NotePurchase ReturnCredit Note, Debit Note
Transfer InPurchase Refund NoteStock Requisition
Consignment GRNTransfer OutDelivery Order, Goods Delivery Note
Customer Consignment InConsignment GINPacking Order, Jobsheet, Job Order
Customer Consignment OutPurchase Requisition

Twenty-five document types carry a non-zero quantity signum; the table shows the common ones, and Stock balance, end to end lists the rest.

Stock Adjustment takes its direction from the line (adjust-in or adjust-out). Stock Conversion takes it from the tab the line was entered on, and its stock step is not switched on yet (§5). A Customer Consignment moves stock you still own between two of your own locations: its type gives the sign at the line’s location, and its second location, when the line names one, takes the opposite sign, at no change in value. Finalising a zero-signum document changes nothing on the balance: it knocks off, reserves or bills. The module page draws the same split as a diagram.

Receiving: the pair that catches people

The receiving pair is the one that catches people. A plain Purchase GRN records that goods arrived; it does not put them in stock. Either the purchase invoice books the stock (and the GRN is paperwork), or you use GRN Stock In, which books the stock and leaves the invoice to book only the money.

That invoice is a Purchase Invoice No Stock In raised from the GRN Stock In: raised from it, its journal also clears the not-yet-invoiced accrual the receipt posted, and keyed on its own it leaves that accrual open. Whoever closes the payables reconciles the two not-invoiced accounts each month. Use one pair or the other. A GRN Stock In and a stock-booking purchase invoice for the same goods counts them twice.

Receiving on the purchase invoice is the common choice; GRN Stock In suits a group whose goods regularly arrive weeks before the supplier’s invoice and who wants them in the stock balance, and in its value, from the day they land.

Nothing in BigLedger records which pair you chose: each half is its own document type, with its own applet and permissions, so the choice lives in your written receiving procedure. Make it per company, because the GRN Stock In’s accrual posts to that company’s default GL codes, and write it down, because the two halves are keyed by different people (the storeroom and accounts payable) who each see only their own screen. A company may take some suppliers in on GRN Stock In and the rest on the purchase invoice, as long as no single delivery goes through both.

The same trap exists on the sales side: a plain Sales GIN and a plain Sales GRN are inert, and the document types that really issue and receive stock — GIN Stock Out, GRN Stock In — are different documents. A Sales GIN Stock Out also posts the sale, as an invoice does (Sales GIN Stock Out), so with an ordinary Sales Invoice for the same goods the stock comes out twice and the sale is booked twice.

3. Balance and availability are different numbers, and availability can exceed balance

Balance is what the ledger says you physically hold. It is a stored row, rewritten each time a ledger line is processed.

Availability is what you can still promise, and it is not stored: it is worked out at the moment you open the screen, as balance + a signed adjustment for open documents − reserved quantity. So it is more than “balance minus reservations”: the open documents carry a sign, and one of them can push it above the balance:

    flowchart LR
  SB["Stock balance<br/>ledger quantity at this company and location"]
  SO["Open sales orders<br/>not yet invoiced · signum −1"]
  GRN["Goods received notes<br/>not yet invoiced · signum +1"]
  ADJ["Signed open quantity<br/>(the listing's Adj Qty shows it unsigned)"]
  RES["Reserved quantity<br/>Stock Reservation · subtracted"]
  AV["Available Qty<br/>balance + signed open quantity − reserved"]
  SO --> ADJ
  GRN --> ADJ
  SB --> AV
  ADJ --> AV
  RES --> AV
  

So “50 on the shelf, 0 available” means open sales orders or a reservation, and “10 on the shelf, 35 available” means goods received and not yet invoiced. Both are correct: availability can fall below the balance as well as rise above it. In Stock Availability, click a location’s quantity on the Details listing to open the item’s Details view, whose document tabs (sales orders, goods received notes and the others) list what lies behind the adjustment; the Details listing itself hides those sections until you untick them in its Optional filter. Either way the difference traces to specific documents rather than to a mystery.

One screen gets this sum wrong: on the Stock Availability listing, an item with both an open sales order and an uninvoiced receipt at one location can read too high, because the listing merges the two rows without signing the first and drops the reservation. Read that item on Details instead (Stock Availability, Troubleshooting).

Reservation is a third, separate thing. A reservation reserved as a whole (not through its bin lines) adds to the reserved column on the balance row, which the availability screens subtract. It moves no stock and posts nothing. It is opt-in — an action somebody takes in the Stock Reservation applet, or one the Sales Order applet takes for an order (a Packing Order’s approval releases one). A job order’s hold is a separate temporary record, not one of these reservations. There is no “hard” and “soft” allocation, and a plain FINAL sales order does not lock anything.

An idea worth using: because availability counts goods received and not yet invoiced, a branch can promise stock that is in the storeroom but not yet billed by the supplier. Because it subtracts open orders, a sales order you will never fulfil keeps hiding stock from every other salesperson for as long as it shows an open quantity. Reviewing stale sales orders each week is as much the stock controller’s job as the sales team’s, and you know it is done when the Sales Order tab of the item’s Details view lists only orders somebody still means to deliver.

4. Counting measures the gap; adjusting closes it

These are two applets and two documents, and conflating them is the commonest misunderstanding in the module.

Stock TakeStock Adjustment
What it isA counting session for one location, with devices attached and records captured by scan or by handA document with lines, saved as a draft and finalised
What it producesA report: counted against system, a tolerance band for movements during the count, missing and unexpected serials, and the cost of the differenceA ledger line per item and a journal
Effect on the balanceNone. It never changes a balanceChanges it
Effect on the ledgerNoneOne signed line per item

There is no “post the variance” button. Somebody reads the count report, decides which differences are real losses and which are timing, and raises an adjustment for the real ones: keyed in the Stock Adjustment applet, or loaded through its CSV File Import, which can create the adjustments as drafts for review.

The Stock Take report exports to Excel in a different layout, so whoever loads the file rebuilds it in the import’s columns. For a multi-UOM item, leave the export’s variance1 column out: it is not the variance on screen (Stock Take). Enter each accepted difference in base units, with a negative QTY and a negative COST_PRICE for a write-off. That decision is the stock controller’s, and a write-off above whatever limit your policy sets should carry a second signature from finance before the adjustment is finalised.

The stock take report values the variance at the location’s moving-average price as it stood before the count began: the price on the last movement at that location before the session’s start date. Items with no movement there before then value at zero, and a FIFO tenant never sees FIFO cost on that report. Treat the count report’s cost column as indicative. The value that reaches the ledger is the Stock Adjustment’s line amount, so check the money on the adjustment before it is finalised.

5. Which stock movements post a journal

Three kinds of record in this module post a journal of their own: the Stock Adjustment, the Reset MA (in the same applet), and the consignment GRN and GIN. A GRN Stock In, which Purchasing owns, posts one too. The standard posting table has exactly seven journal handlers; this module’s documents use three of them, and a Reset MA posts through a path of its own.

DocumentPosts a journalAccounts
Stock AdjustmentYes, by a posting job after FINALAdjust-Out (quantity down): debit stock adjustment (STOCK_ADJUSTMENT, unless a GL code on the line, then on the document, then the item’s link for this company names another), credit stock (STOCK_BALANCE). Adjust-In: the reverse
Reset MA (Stock Adjustment applet)Yes, in the same request as FINALTwo lines for the change in value, between stock (STOCK_BALANCE) and the reset’s own GL code or the company’s RESET_MA default; raising the cost debits stock
Consignment GRNYes, through the consignment handlerDebit CONSIGNMENT_STOCK, credit CONSIGNMENT_LIABILITY
Consignment GINYes, through the ordinary purchase mapping: it has no consignment mapping of its ownDebit the supplier’s ordinary payable account (CREDITOR for a trade supplier), credit purchases (PURCHASE), tax to INPUT_TAX. A known defect BigLedger is tracking: by design it reverses CONSIGNMENT_LIABILITY / CONSIGNMENT_STOCK
GRN Stock In (Purchasing)Yes, through its own handlerDebit inventory received and not invoiced (INVENTORY_NOT_INVOICED), credit a not-yet-invoiced supplier balance (CREDITOR_NOT_INVOICED)
Stock Transfer (out and in), Consignee Stock Transfer, Customer ConsignmentNoQuantity only
Stock ConversionNoNothing moves: its posting step is not connected (below), and §6 says why connecting it would not be enough
Stock Take, Stock Reservation, Stock Requisition, Replenishment, Monitoring, WMS, Barcode, PDG, the delivery appletsNoNo ledger line and no journal

If a Reset MA’s journal fails, the reset still stands with no journal behind it, so look for it in Ledger and Journal’s Missing Journal check with the Reset MA document type. The consignment GRN posts to the consignment accounts because the stock is not yours until it sells; the GIN that sends it back reaches your ordinary supplier and purchase accounts instead. Check those accounts, not the consignment ones, when a returned consignment does not seem to have left the books.

Transfers and conversions post no journal

Everything else in the module posts nothing. Stock transfers carry quantity only: an outbound transfer moves the goods into the company’s in-transit location and the inbound moves them out of it, and value stays on the balance sheet wherever the goods physically are, and the company’s unit cost is untouched by construction — the transfer types are excluded from the moving-average calculation, so the transfer is a cost-neutral relieve.

The per-location cost is a different number and it does not follow the goods: the location calculator seeds from the previous line at the receiving location, so a location that has never held the item seeds at zero and values the arrival at zero. Read the company figure for valuation; see Stock Transfer for the three cases.

Stock conversions post no journal either, and their stock step is not connected: no job is subscribed to the conversion’s posting run, so a FINAL conversion leaves the balance where it was. Until it is, record a conversion as Stock Adjustments, out for the components and in for the kit. An adjustment’s line amount does enter the moving average, so put the components’ cost on the kit’s line, and check the kit’s average afterwards on its Costings tab in Doc Item Maintenance.

No sale carries a cost line. A sales document posts receivable, sales, discount and tax, and nothing for the cost of the goods. Cost of sales is written once a month, by Month End Processing in the Financial Report applet, from opening stock, the month’s purchases and purchase returns, closing stock read from the stock ledger when the close runs (or a non-zero manual figure selected on that month’s closing-stock record), and the month’s stock adjustments and Reset MA, counted once. Until somebody runs it for the month, the income statement shows sales with no cost against them. The formula is on Financial Accounting’s core concepts; the stock arithmetic and its traps are in Costing internals.

Why it is built this way. A stock account that moved on every sale would agree with the stock report by construction, but every backdated receipt would then rewrite the cost on journals in a month you had already reported. A group that receives late, keys supplier invoices days after the goods arrive and moves stock between twenty branches would see closed months change underneath it. The monthly close keeps posted journals still and puts the reconciling in one place, at month end, where a person can do it.

6. Four cost bases are kept at once, and moving average is the one that bites

Every balance row has moving-average, weighted-average, FIFO and LIFO columns, plus last purchase cost and landed cost. They are kept side by side, not a costing mode you select, and each screen decides which one to show. Moving average is written on every movement, on the location row and the company row; the movement job writes the weighted average on the location row. FIFO is written by a separate job, on the company’s row only, and only where that job is switched on for your account (and by the FIFO rebuild).

Nothing writes the LIFO, manual or replacement columns, so a ledger line’s LIFO, manual and replacement cost is empty however the item is set up, and a report read in LIFO shows zero.

Which column values your closing stock is a choice: the company’s Inventory Closing Base On setting, moving average when nobody sets it. Month End Processing reads it for the cost-of-sales journal, and LIFO, manual or replacement value closing stock at zero. How to choose, and what each choice costs, is Step 2 of Closing the Month on Stock.

Moving average is what most screens use, and three things distort it or leave it short:

  • A stock conversion moves no cost between items. Today a FINAL moves no stock at all (§5), and as built even a connected chain would update no balance: its lines, as the screens build them, carry no company, which a location balance must have, and the job reads one item’s lines only (Stock Conversion). By design the kit would come in at its own last price at that location — zero for a new item — so it never carries its components’ cost. Use a Stock Adjustment pair.
  • A trade-in unit is not inventory stock at all. Trade-ins live in their own tables with their own cost, appear in Stock Availability because that screen unions the two, and never appear in the historical balance report.
  • A backdated document re-projects the chain, which moves every average computed after it.

Reset Moving Average, in the Stock Adjustment applet, is the correction. It changes inventory value on the balance sheet at once, through its own journal to the reset account. Month End Processing counts that journal once, and on a moving-average closing basis each later close values stock at the average at its own cutoff, which starts from the reset. So it belongs to finance and to nobody else.

7. Nothing in this module is approved

BigLedger’s document-approval settings can be created for three document types — Purchase Order, Purchase Requisition and Stock Requisition — but only the Purchase Order and Purchase Requisition screens can submit a document for approval. The engine itself keeps no list of types; the limit is in the applets. It is off until a tenant configures it, and causes FINAL rather than gating it. No transfer, adjustment, conversion or count consults it.

And the one inventory document the engine nominally covers is a dead end today: the Stock Requisition applet shows an Approval Settings screen but has no approval tab on the document, no request screen and no history screen, so a setting created there cannot be used from that applet.

Your control over who may write stock off, move it between branches or reset a cost is who is given each applet and its permissions, and nothing else: finalising an adjustment or a transfer needs only the right to edit it, and neither applet can give FINAL to one role and keep it from another. Stock Adjustment’s setting that hides FINAL hides it from everybody, while its File Import still posts FINAL; Stock Transfer’s hides it on the listings only, and an opened draft still shows it.

Say so during implementation rather than after the first write-off nobody expected. The review that an approval step would have given you becomes a person’s job: the finance manager reads the month’s stock adjustments and resets before Month End Processing, and knows it is done when every adjustment over the write-off limit carries the second signature the policy asks for.

Where each number comes from

When somebody asks “where did this figure come from?”, the answer is one of these.

The numberStored or worked outWritten when, from what
Balance on Stock BalanceStored on the balance rowRewritten by a background job each time a ledger line is processed, after FINAL; the sum of the item’s signed ledger lines at that location
Available on Stock AvailabilityWorked out each time you open the screenBalance, plus open sales orders and uninvoiced goods received (signed), less reservations
Cost on a document lineStored on the lineWritten back by the costing job after the ledger line exists, from the company moving average at this movement (a sale does not change it); rewritten if a backdated document replays the chain
Cost Value on a stock take reportStored when the report is generatedThe location’s moving-average price on the last movement at that location before the session’s start date
Stock account on the balance sheetA journal balanceMoved by stock adjustments, Reset MA, opening balances and Month End Processing, and by anything else a person codes to that account
Cost of sales on the income statementA journalWritten by Month End Processing for the month; deleted and rewritten each time the month is processed again

The last two are the pair that disagree in the week before an audit. They are made by different machinery at different times, and nothing in BigLedger compares them for you. Stock report versus the stock account lists the conditions under which they agree and how to tie them out.

When a stock number looks wrong

What you seeWhich idea explains itWhat to do
A purchase GRN is FINAL and Stock Balance has not moved§2: a plain GRN is paperworkThe purchase invoice books the stock. Check it is FINAL
Stock doubled after the supplier’s invoice was keyed§2: GRN Stock In and a stock-booking purchase invoiceVOID the duplicate, settle the GRN Stock In with a Purchase Invoice No Stock In, and agree which pair this company uses. A refused VOID says why: a later document raised from it (named; void those first, newest first) or an e-invoice link or self-billing (finance chooses the correcting note). Or void the GRN Stock In instead, if nothing blocks it, keep the invoice that books the stock, and check that the receipt’s stock and journal were reversed (Related applets)
The stock went to the wrong location§1: the line had no location and fell to the branch defaultCheck the branch’s default location; correct with a transfer
“Stock Availability shows 50 physical but 0 available. Where did it go?”§3: open sales orders or reservationsThe item’s Details view lists the orders; deal with the stale ones, and check Stock Reservation for holds. Other causes of a zero you do not believe: Stock shows zero but there is stock
“My count and the stock report still disagree after a stock take.”§4: a count never changes a balanceRaise a Stock Adjustment for each variance you accept (Counting and variances)
A conversion is FINAL and nothing moved§5: the conversion’s posting run is not connectedRecord it as a Stock Adjustment pair
A branch values transferred stock at zero§5: the per-location cost starts from that location’s own historyRead the company cost for valuation (Where the cost comes from)
Sales this month show no cost of sales§5: cost of sales is the month-end journalRun Month End Processing for the month
A voided document still shows on the Stock Card§1: VOID adds a reversing lineExpected: both lines stay. If they do not net to zero, compare their items and locations: the reversal is worked out from the item’s links and locations as they stood at VOID
Margins on last week’s sales changed§1 and §6: a backdated document replayed the chainThe margin report and the P&L don’t agree; Costing internals for controlling backdating

How you know a stock document worked

After you finalise any stock document, you can see that it worked without waiting for the month end. Open the item in Inventory Item Maintenance, go to the Stock Card tab, choose the location and a date range that includes the document’s date, and find your document number with the quantity you expected, signed the right way. Then open Stock Balance for the same item and location and confirm the quantity has moved by that amount. If the stock card has the line and the balance has not caught up, wait a moment and refresh, because the balance is written by a later job. A foreign-currency document moves stock through its base-currency copy, so look for that copy’s line.

If the stock card has no line at all, the document’s type moves no stock (§2), the item is not a stock-keeping item, or the stock job has not run or has failed for it: find out whether its posting ran before you raise a second movement.

For a valued Stock Adjustment or a Reset MA, also open the journal for that date in Ledger and Journal: the adjustment or reset account against stock, balanced, for the document’s value. A line whose account did not resolve is dropped, so a journal can balance and still be short; compare its total with the document’s.

How this sits among the other modules

  • What must exist first. A branch default location on every branch (§1 falls back to it), and the company default GL codes the journals in §5 resolve against: STOCK_ADJUSTMENT and STOCK_BALANCE for adjustments, the Reset MA code unless each reset names its own, and COGS with STOCK_BALANCE for Month End Processing. A missing code does not stop FINAL; it stops the journal afterwards, and the stock moves anyway. The full list is in Configuration.
  • What it makes possible. Sales promises from the availability in §3, and E-Commerce derives each marketplace’s quantity from the balance in §1; Financial Accounting closes the month on the closing stock the ledger in §1 holds.
  • Its siblings, and when to use which. Stock Take or Stock Adjustment (§4); Purchase Invoice or GRN Stock In for receiving (§2); Stock Transfer between locations of one company, or a sale and a purchase between companies of the group, which, unlike a transfer, carries value and tax.
  • What breaks elsewhere if it is wrong. A double-counted receipt in Purchasing (a GRN Stock In and a stock-booking invoice for the same goods) inflates the closing stock Month End Processing values, which understates cost of sales and overstates profit for the month. A zero per-location cost at a branch understates that branch’s stock value on a report that values stock at the location’s cost.
  • What it is used with. A stock take, then an adjustment for each accepted variance; an outbound transfer, then the inbound that receives it; the month-end stock check, then Month End Processing.

Read next

Costing internals — where the cost on a document line comes from, what makes it jump, and how cost of sales is worked out at month end. It takes §5 and §6 of this page down to the arithmetic.

The jobs that rest on these ideas are walked step by step in the inventory guides: Stock Management for setting a company up (§1, §2 and §5), Stock Transfer Procedures (§5), Counting Stock and Deciding What a Difference Means (§4) and Closing the Month on Stock (§5 and §6).