Stock lookup across stores: which number the POS shows, and when to trust it
"The system says the other store has four." Every retail embarrassment that follows that sentence, the customer who drove across town to find two, one of them damaged, starts with the same misunderstanding: the lookup at the till is not a live count. In LS Central, cross-store availability at the POS comes from a pre-calculated table, refreshed by jobs, fed by replication, and calculated from specific sources. None of that makes it useless; it makes its trustworthiness a knowable quantity. This guide explains which lookup a screen is actually showing, how fresh that number can possibly be, and what to check before promising a customer another store's stock.
The till and the back office are answering different questions
Start with the default that surprises everyone: by default, LS Central calculates inventory using information from the Item Ledger only. The Aggregated Inventory documentation states this default for all three consumers of the number, the inventory sent to eCommerce via web services, Customer Order availability, and POS Inventory Look-up. Stores running Aggregated Inventory get a different calculation: both the Item Ledger and the Aggregated Inventory Entries feed the availability figure.
Meanwhile, the back office's Retail Item Card blends the layers into Actual Inventory. Inventory plus Aggr. Inventory at store locations, minus Aggr. Inventory at the aggregated location, minus Qty. Sold not Posted, and the availability pages behind Related → Availability (by Location, by Variant, by Periods, and their combinations) use that same formula. So the till can say four because the lookup table was calculated from the ledger an hour ago, while the back office says three because it can see a sale that has been rung up but not yet posted. Both are honestly reporting their own data path. Staff who know that stop arguing with the system and start checking the freshness of the path.
Architecture one: the centrally calculated lookup table
The classic design runs through the Transaction Server. The POS Functionality Profile field TS Inv. Lookup enables Inventory Lookup for a location, and the mechanics are deliberately centralised: stock levels have to be calculated in a central location, or any location with access to the stock levels at all stores, with the results placed in the Inventory Lookup Table. Once calculated, those records are sent to the stores, and each POS queries its local store database for the stock levels in different locations. The common scenario is calculation at Head Office, distribution to the stores, and fast local answers at every till.
Three operational details decide whether this works in practice. The command only works in the lookup menu, during an Item lookup or Variant lookup, not in the normal sales menu, which is why staff sometimes report the feature as "missing". Somebody must specify for which Product Groups the Lookup should work, in the head office database, and enable it for each Store, enabling a store triggers an update of the lookup table for it. And the table must be updated regularly, manually or automatically from the Scheduler, at a minimum each time a new Item or Store is added. A lookup that was never scoped to a product group, or never refreshed after a range change, is not lying, it is answering from a table that was never told about the item.
Architecture two: Commerce Service inventory updates
The Commerce Service world updates the same Inventory Lookup Table with scheduler jobs instead. The COMMERCE_INVENTORY job runs codeunit 10012871 and calculates the inventory status for items in Retail Product Groups marked with the POS Inventory Lookup feature, where the store is marked as a Web Store; it should run on a regular schedule during the day. Its parameter modes define its freshness behaviour:
| Mode | What it updates | Freshness implication |
|---|---|---|
| INITIALIZE | Initialises the Inventory Calculation Counters table with the latest replication counters for Trans. Sales Entry, Item Ledger Entry, CO Reservation Entry and Trans. Inventory Entry | Run once, first time, or to re-initialise the data, before the counter mode can be trusted |
| ALL | The Inventory Lookup Table for all items | A full refresh: the most complete reset of stale figures, and the heaviest run |
| COUNTER | Only items that have been moving since the last run, tracked via those replication counters | The routine mode: freshness is bounded by how often the job runs and whether the counters are healthy |
Preparation mirrors the older architecture: on the Retail Product Groups page, select the item categories to include, set the POS Inventory Lookup check box, and run Update POS Inventory Lookup for all product groups, and if a new Product Group or Item Category is added later, that preparation must be executed again, or done via the INVLOOKUP scheduler job. Note what the COUNTER mode reveals about the whole design: the inventory status is driven by replication counters of the sales, ledger, reservation and inventory transaction tables. The lookup is exactly as fresh as the last job run and the replication that fed it, two clocks, either of which can be the stale one.
What makes a lookup number trustworthy
- The calculation clock. When did the lookup job last run, and did it complete? In the central architecture that is the scheduler (or manual) update of the lookup table; in the Commerce architecture, COMMERCE_INVENTORY's schedule during the day. A number older than the last run is a snapshot, not a reading.
- The replication clock. Centrally calculated records still have to be sent to the stores, and the counter mode keys off replication counters. Replication lag upstream means every downstream number is old even if the job ran a minute ago.
- The scope. Lookup only covers the product groups flagged for POS Inventory Lookup, in the stores it was enabled for. An item outside the scope does not produce a wrong number so much as a missing one staff may misread as zero.
- The source. Ledger-only by default; ledger plus aggregated entries under Aggregated Inventory. The same store, the same item, two defensible numbers, know which source your estate uses before comparing screens.
- Unposted sales. Nothing in the till's lookup path deducts the copy that a colleague sold twenty minutes ago if that sale has not posted and replicated. Busy stores on popular lines are where lookup figures go to be optimistic.
For completeness: the Mobile POS can also look up items in stock, in stock or out of stock, including inventory in different stores. It drinks from the same wells; the checklist below applies to it unchanged.
A trust checklist before promising stock to a customer
- Glance at the quantity with suspicion proportional to its smallness. A lookup showing 40 can survive a few sales of drift; a lookup showing 2 cannot. The smaller the number, the more the next steps matter.
- Check when the lookup data was last refreshed, job history for COMMERCE_INVENTORY / INVLOOKUP, or the lookup table's last update in the central design, and treat anything older than your store's selling pace as indicative only.
- Confirm the item is in scope: its product group carries the POS Inventory Lookup flag and the store you are quoting was enabled for lookup. If either is missing, say "let me check" instead of quoting a number.
- For the final unit or two, verify by voice. A thirty-second call to the other store converts a snapshot into a promise you can keep; the system's job is to tell you where to look, not to guarantee the shelf.
- If a promised item turns out missing, log which clock failed, stale job, stalled replication, missing scope, or unposted sale. Each has a different fix, and "the system is wrong" fixes none of them.
What success looks like
Staff can answer three questions about any lookup figure without hesitation: which data path produced it, when that path last refreshed, and whether the item and store are in the lookup's scope. Lookup jobs run on a schedule somebody owns, new product groups get the POS Inventory Lookup preparation as part of being created rather than after the first complaint, and "the other store has four" is spoken as what it is, a recent, sourced snapshot that earns a phone call before it earns a customer's road trip.
FAQ
The lookup command is missing at our till. Is it licensed
separately?
Check the context first: the command only works in the lookup menu, during an Item
or Variant lookup, it does not appear in the normal sales menu. Then check that
TS Inv. Lookup is set on the POS Functionality Profile and that lookup was enabled
for the store.
Why does head office see a different quantity than the store's
till?
They are reading different paths. The back office's Actual Inventory deducts Qty.
Sold not Posted and blends aggregated entries; the till reads the Inventory
Lookup Table, calculated centrally or by the inventory job and distributed to the
store. A difference is expected whenever sales are unposted or a refresh is
pending.
How often should the inventory job run?
The documentation's guidance is a regular schedule during the day for
COMMERCE_INVENTORY, and regular updates, at least when items or stores are
added, for the lookup table. Beyond that, match the cadence to selling pace: the
right interval is the one where a fast-moving line cannot sell out between
refreshes without anyone noticing.