In-store inventory vs the item ledger: why LS Central shows two different stock numbers
A store manager counts nine units on the shelf. The back office shows twelve in the item ledger. Both numbers came out of the same system, and, this is the part that wastes hours, both can be right at the same time. LS Central keeps more than one inventory number because different processes need different answers: the ledger is the posted, financial truth, while the in-store view is supposed to reflect what a customer could actually buy. The confusion starts when those numbers are treated as interchangeable, and it ends when you know which entries each one is built from.
This guide maps the layers. It is about where the numbers live and which screens read them, not about counting technique, and not about fixing negative stock, which have their own guides on this site.
Two ledgers, one shelf: what each number actually is
The Item Ledger is Business Central's posted record. Every receipt, sale, transfer and adjustment that has been posted exists there as an Item Ledger Entry, and the inventory figure labelled simply Inventory on item availability screens is calculated from those entries. Nothing reaches the item ledger by happening on the shop floor, it reaches the ledger by being posted.
With Aggregated Inventory activated, a second entry layer sits beside the first. When a receipt or shipment is posted for a store location, the Item Ledger Entries show the inventory at the aggregated location, while Aggregated Inventory Entries keep track of the inventory at the individual store location. The point of the split is performance: sales from all stores consolidate into far fewer Item Ledger Entries, the documentation's own example turns 200 entries (10 items sold at 20 stores) into 10, while the store-level detail is preserved in the aggregated entries.
The availability screens blend the layers into five fields, and each field answers a different question:
| Field | Built from | The question it answers |
|---|---|---|
| Inventory | Item Ledger Entries | What has been posted, financially, against this location? |
| Aggr. Inventory (Store Location) | Aggregated Inventory Entries whose Source Location (Store) matches the location filter | What does the store-level entry layer say this store holds? |
| Aggr. Inventory (Aggr. Location) | Aggregated Inventory Entries whose Location (Aggr.) matches the location filter | What has been consolidated into the aggregated location? |
| Qty. Sold not Posted | POS sales not yet posted into the Item Ledger | What has already left the shelf that the ledger does not know about yet? |
| Actual Inventory | Inventory + Aggr. Inventory (Store Locations) − Aggr. Inventory (Aggr. Locations) − Qty. Sold not Posted | What is actually available at this store, right now? |
Read the formula once and the classic argument dissolves. The shelf count and the ledger differ by exactly the things the formula names: sales rung up but not posted, and movements recorded at store level that have not been consolidated into the aggregated location yet.
Which screens and processes read which number
Knowing the layers exist is only half of it, the practical question is which process is looking at which layer when it gives you a number.
- Item availability and the availability check. By default, the availability check on an outbound line is based on the Item Ledger only. With Aggregated Inventory, the check considers both the Item Ledger and the Aggregated Inventory Entries, so it warns only when the item is out of stock on both sources.
- POS Inventory Lookup, Customer Orders and eCommerce. By default these calculate inventory from the Item Ledger only. Aggregated Inventory changes the calculation to use both entry types, which is why enabling it can change the stock figure a web shop shows without a single unit moving.
- The Retail Item Card. The Item Inventory FactBox shows the blended fields, including the two aggregated figures, and the Related → Availability pages (by Location, by Variant, by Periods, and the variant/location combinations) use the same Actual Inventory formula.
- Store Inventory Worksheets. The counting and adjustment worksheets display the aggregated location when Aggregated Inventory is active, and the Counting Manager actions Recalculate Lines and Insert Not Counted rebuild Qty. (Calculated) from both entry layers for store locations, so a count sheet can show a different expected quantity than a ledger-only report printed the same morning.
- Mobile Inventory. Item look-up, stock counting, adjustments, purchasing, transfer, picking and receiving all work under Aggregated Inventory; the adaptation is in the background operations, not the screens.
Why the numbers legitimately disagree during the day
The biggest cause is timing, and it is built into how sales post. A POS sale does not create an Item Ledger Entry at the moment of the transaction. The sale sits as sold-not-posted until the store's statement is calculated and posted, statement posting is the step that creates the Item Ledger Entries and updates inventory for the store locations. A store that posts statements nightly will show a ledger figure that is, by design, up to a day behind the shelf.
Aggregated Inventory adds a second timing step. With it activated, statement posting creates the financial transactions and the Aggregated Inventory Entries and updates the store inventory, but Item Ledger Entries are not yet created. The item lines wait in the Aggregated Inventory Item Journal Batch (Detailed), get aggregated into the (Aggregated) batch, and only become Item Ledger Entries for the aggregated location when that batch is posted, manually, or by the scheduler codeunit AGRI Aggr. & Post Item Jnl. which is meant to run after statement posting for all stores. So mid-cycle, the store-level layer can be current while the ledger layer is still waiting for its batch.
One more documented wrinkle: when a document is released under Aggregated Inventory, its Location Code switches to the aggregated location and the store is preserved in the Aggr. Inv. Source fields, but partially shipped or received lines are an exception and do not switch. A half-received purchase order therefore legitimately shows its remaining quantity against a different location than someone scanning the header might expect.
When they disagree and should not: the usual causes
Once timing is ruled out, persistent disagreement has a short list of homes:
- An unposted statement or a stalled aggregation batch, the sold-not-posted quantity keeps growing and the ledger never catches up.
- A genuine mismatch between the two entry layers, the system keeps a dedicated page for exactly this, covered in the procedure below.
- Aggregated entries with missing references, store-level entries that point at no Item Ledger Entry, again surfaced on the same page.
- Replication timing between store and head office, a number read at head office can only reflect what has replicated up; the store's own database may already be ahead of it.
- A real physical difference, the shelf genuinely does not match either layer, which is a counting problem, not a systems problem.
Clean data is what separates the last cause from the rest: a discrepancy you cannot trace to an entry is a discrepancy you cannot fix in setup, and entering corrections against unproven numbers just moves the error somewhere harder to find.
A triage procedure: find which layer is wrong
- Start with Qty. Sold not Posted. On the Retail Item Card, read Actual Inventory and its four components. If the gap between Inventory and the shelf equals Qty. Sold not Posted, you have a timing difference, not an error, confirm the store's statements are posting on schedule.
- Check the aggregation step (Aggregated Inventory only). Look for lines still sitting in the Aggregated Inventory Item Journal Batch (Detailed) or (Aggregated). Lines there mean statement posting finished but the item journal posting has not, run or schedule the AGRI Aggr. & Post Item Jnl. codeunit after statement posting.
- Open Aggregated Inventory Posting Error Checks. This page is a sanity check built for mismatches. Read the Discrepancy fields: Item Ledger - Quantity Mismatch gives the mismatch quantity between the two entry layers, and Aggr. Inventory Entries, Missing References gives the quantity in Aggregated Inventory Entries with no reference to Item Ledger Entries. A non-zero value names the broken layer directly.
- Check for a partial document. If the item was on a purchase or transfer order that was only partially received or shipped, remember those lines keep their original location, verify the quantity where the line actually sits before concluding anything is missing.
- Check replication before blaming entries. Compare the figure in the store's own database against head office. If the store is right and head office is behind, the fix is in the replication flow, not in inventory.
- Only then count. If every layer agrees with itself and still disagrees with the shelf, treat it as physical: count the item and post the difference through the Store Inventory Worksheet, which creates both Item Ledger Entries and Aggregated Inventory Entries when it posts.
What success looks like
After triage, the five availability fields reconcile: Actual Inventory matches a physical spot-check of the item, Qty. Sold not Posted reflects only sales since the last statement posting, the Aggregated Inventory Posting Error Checks page shows zero quantity mismatch and zero missing references for the location, and no lines are stranded in the aggregation journal batches. When all four hold, the two numbers have stopped "disagreeing", they are simply answering their different questions again.
FAQ
Which number should replenishment and reports use?
For availability decisions at a store, Actual Inventory, it is the only field that
deducts what has been sold but not posted. For financial reporting, the Item Ledger
is the record: it is what costing and the general ledger are built on. The mistake
is using one where the question belongs to the other.
Does Aggregated Inventory change what staff see?
The processes staff run, documents, journals, Mobile Inventory tasks, keep their
screens and steps; Aggregated Inventory adapts the background operations so the
location logic is handled underneath. What changes is which entries hold the
numbers, and when the Item Ledger catches up.
Why does the count sheet's expected quantity differ from my ledger
report?
Under Aggregated Inventory, Recalculate Lines on a Store Inventory Worksheet builds
Qty. (Calculated) from both Item Ledger Entries and Aggregated Inventory Entries
for store locations. A ledger-only report is reading one layer; the worksheet is
reading both.