Skip to content

Inventory discrepancies between ERP and WMS: how an AI Worker shows where to look

DYNAMINDS Labs team · · 5 min

AI Workers

In brief

An inventory discrepancy rarely means lost goods. Most often it is a document that reached one system but not another: a receipt not posted, a transfer between warehouses still in transit, a reservation in the online store, a different unit of measure. An AI Worker compares stock in the ERP, the warehouse management system and sales channels every day, looks for the cause of each difference in the documents and picks locations to recount. A person approves stock adjustments, write-offs and batch blocks.

Three systems, three stock levels

In a mid-sized distributor or manufacturer, the same item has a stock level in at least two places. The ERP keeps book stock per warehouse, the warehouse management system (WMS) keeps stock per location and batch, and the online store and marketplaces show stock available for sale. Each updates at a different pace and from different events.

The consequences are concrete. The store sells goods that are not there and the order has to be cancelled. The warehouse cannot issue goods the ERP shows, because they sit in a blocked location. Purchasing orders too much because the ERP does not see a receipt that is already on the shelf. That problem was the starting point of the case study on integrating an online store with marketplaces and a warehouse system, where stock synchronized with a delay led to selling products that were not available.

The most common causes

CauseHow the difference looksWhere to find evidence
receipt in the WMS with no goods receipt (PZ) in the ERPWMS shows more than the ERPopen purchase orders, receipts from recent days
goods issue note (WZ) posted, goods still at the dockERP shows less than the WMSissues without a loading confirmation
transfer (MM) in transitmissing in one warehouse, surplus in another or nowheretransfers with no receipt at the destination
store reservations and ordersthe store shows less than the ERPpaid orders not yet shipped
different units of measurea difference by a fixed multiple, such as 12the item record, pack conversion factor
customer returnsgoods physically there, not in the systemreturns put away without a document
picking errorsurplus of one item, shortage of a similar oneissues of items with similar codes or looks
batch or expiry datetotal stock matches, batch stock does notbatch history in the WMS

Most of these causes are visible in the documents without walking the warehouse. That is why the order of work matters: documents first, then recounting locations.

How the AI Worker works

The Stock level checker reads stock and receipt, issue and transfer documents from the ERP, locations and batches from the WMS, stock in the store and on marketplaces, and stocktake results. Every day it runs four steps:

  1. Lines up stock levels. The same item in the ERP, the WMS and sales channels, in the same unit of measure.
  2. Flags discrepancies. Differences above the threshold in the rules card, negative stock and items with no movement for a long time.
  3. Looks for the cause in documents. For each difference it checks the causes in the table above and gives the most likely one with a document number, for example "receipt for purchase order 4512 recorded in the WMS on 12 Nov, missing in the ERP".
  4. Picks locations to recount. When documents do not explain the difference, it points to locations where the item is or could have been put away, and to locations of items with similar codes.

The result is a daily list of discrepancies with a likely cause and locations to recount. Some differences disappear on their own once someone completes a document. The rest go to the warehouse as a short list of locations to check, not an instruction to recount a whole zone.

What stays with a person, and how this relates to stocktaking

Stock adjustments in the ERP, write-offs or markdowns, and blocking a batch for sale wait for a person. These decisions change the financial result or product availability, so the AI Worker does not make them.

Daily checking does not replace stocktaking, but it makes it easier. The Polish Accounting Act allows stock held in guarded storage and covered by quantity and value records to be counted once every two years. A company that explains differences daily and recounts the suggested locations comes to the count with fewer surprises, and differences found are easier to explain because the history is in the log. The stocktaking rules themselves are set by the company with its chief accountant and auditor.

Master data decides the result

Some discrepancies are not movement errors but bad data in the item master: a missing pack conversion factor, two item codes for the same product, different codes in the ERP and the store. The AI Worker will point out such cases, but fixing them is separate work, covered in Item and business partner records in the ERP. A broader view is in Data quality.

For a pilot, stock exports from the ERP, WMS and store for a few days plus warehouse documents from two or three months are enough. The AI Worker shows a list of differences with causes, and the warehouse checks how many it got right. DYNAMINDS Labs starts with a free diagnosis, and the pilot usually takes 4 weeks on your company's data.

Questions and answers

Does the AI Worker correct stock in the ERP by itself?

No. Stock adjustments, write-offs and batch blocks wait for a person's approval. The AI Worker shows the difference, the likely cause and the document that explains it, and the warehouse clerk or manager makes the decision.

How long does it take to start daily stock checks?

A pilot on file data usually takes 4 weeks. Most of the work is agreeing which store item corresponds to which ERP item, what the units of measure are and which difference threshold matters. After the pilot, the AI Worker gets access to system exports or APIs.

Will it work if an outside logistics provider runs the warehouse?

Yes, if the provider shares a stock and movement report, even as a file. Differences between the provider's stock and the ERP are a common problem, and a list with causes makes the conversation with the provider easier.

Will the AI Worker detect theft?

It can point to patterns worth checking from that angle, such as repeated shortages of the same item in the same zone. It does not decide what happened. Explaining it is up to people, and a list of discrepancies with evidence helps narrow the search.

What it looks like in a project

Start with one task. Describe it, and DYNAMINDS Labs will prepare a free diagnosis.

Meet DYNAMINDS Labs

Read more: AI Workers

All in AI Workers →