In most setups the ERP should own the financial and planning view of stock, while the warehouse management system owns the physical view: bin locations, handling units and movements on the floor. Ownership is decided per data object, not per system, and the sync direction and conflict rule must be written down before go-live.
Key takeaways
- The ERP should hold the valuation and planning view of inventory, while the warehouse management system holds the physical location view.
- Every data object, such as item master, stock quantity, bin location and order status, needs a single named owner.
- Sync direction and conflict rules must be documented before any integration goes live.
- Most failures come from unplanned partial transactions, timing gaps and manual corrections made in only one system.
- Testing with real movement scenarios, not only happy-path data, shows whether the ownership model holds.
Who should own the stock quantity?
The ERP should own the official stock quantity used for accounting, purchasing and planning. The warehouse management system should own the quantity that is physically present in each location, because it is the only system that sees scans, putaways and picks as they happen.
The two numbers should reconcile. A practical rule is that the warehouse system reports movements and the ERP posts them to the financial ledger. Neither system should be allowed to change the quantity silently in the other.
Why a single number is not enough
Stock exists in several states at once: on hand, reserved for an order, in quality inspection, in transit and damaged. A single quantity field hides these differences. Define each state explicitly and state which system owns the transition between them.
Which system should own bin locations?
The warehouse management system should own bin locations, slotting rules and handling units. The ERP usually needs only the warehouse identifier and, where it matters for costing, the storage area.
Duplicating bin logic in the ERP creates a second source of truth that drifts within days. When a picker moves a pallet to a different aisle, the warehouse system should record it, and the ERP should not need to know the aisle at all.
How should sync direction be defined?
Sync direction should be defined per object and per event. Item master data usually flows from the ERP to the warehouse system. Goods receipts, shipments and adjustments usually flow from the warehouse system back to the ERP.
Event-based messages work better than nightly full-file exports for movements. Batch exports are simple, but they leave a gap during which the two systems disagree, and that gap is where operators make manual corrections.
Choosing between real-time and batch
Real-time integration through an API gives faster visibility but needs error handling, retries and idempotency, so a repeated message does not post a movement twice. Batch transfer is easier to audit but can cause overselling if orders are accepted against stale stock. The right choice depends on how often stock changes and how costly a wrong promise is to the customer.
For guidance on how these message patterns are built, see our page on ERP and CRM integration and our broader work on system integrations.
Personal data in warehouse records
Some warehouse records contain personal data, such as delivery contacts or the name of a picker in an audit trail. Where that applies, retention periods and access rights must be designed into both systems. This article is general information and not legal or tax advice. For the rules themselves, read Regulation (EU) 2016/679, the General Data Protection Regulation, in the same way you would check any other obligation with your own counsel. Rui Codex offers technical implementation support for such designs, not legal or compliance advice.
Where does this split usually fail?
The split usually fails at the boundaries: returns, cycle counts, partial shipments and cancelled orders. Each of these events changes stock in more than one place, and the order of those changes matters.
- Returns that are received and restocked before the original order is closed in the ERP.
- Cycle count adjustments made in the warehouse system but never posted to the ERP ledger.
- Partial shipments where the ERP reserves the full order quantity.
- Cancellations that release reservations in one system but not the other.
- Retried messages that post the same goods receipt twice.
A useful test is to list every event that changes a quantity, then write down which system posts it first and which one confirms it. Any event without a clear answer is a future support ticket.
Hypothetical examples of ownership conflicts
Here are two hypothetical scenarios:
In the first scenario, a distributor cancels a half-picked order. The warehouse system returns the picked units to a staging location, but the ERP still shows them as reserved. Planners see no stock and place an unnecessary purchase order. The fix is to make the cancellation event release the reservation in the ERP, using the warehouse system's confirmation as the trigger.
In the second scenario, a warehouse team corrects a bin count directly in the warehouse system and never tells finance. The ERP value stays high, the month-end valuation is wrong, and the discrepancy only appears during the stock audit. The fix is to route every adjustment through a reason code that the ERP must accept before the warehouse system closes the count.
What should you check before go-live?
Before go-live, write down the ownership model for each data object and test it against the failure points above. A short checklist keeps the discussion concrete.
- Name one owner for item master, stock quantity, bin location, reservation, and order status.
- Document the sync direction and trigger for each event type.
- Confirm that every message carries a unique reference and can be safely retried.
- Define what happens when the two systems disagree, and who resolves it.
- Run cycle counts and returns through the full path in a test environment.
- Agree on a reconciliation report that finance and operations both review.
If the team cannot answer these questions on paper, the integration is not ready. Rui Codex builds and tests these connections as part of its integration services, and the same ownership logic applies to custom systems built with our custom software development team. Rui Codex is led by a founder with 200+ projects delivered, and published work is available at the case studies page.
Frequently Asked Questions
Should the ERP or the warehouse system be the master for stock?
Neither system should be the master for everything. The ERP is usually the master for financial and planning quantities, while the warehouse system is the master for physical location and movement. Assign ownership per data object so each number has one authoritative source.
Can a warehouse management system work without an ERP integration?
A warehouse system can run alone, but it then cannot post inventory values, reserve stock against sales orders or feed purchasing automatically. Most businesses that run both need a defined integration, even if it starts as a simple scheduled file exchange.
How often should the two systems reconcile?
Reconciliation frequency depends on how fast stock changes and how costly a wrong promise is. Many teams run automatic checks daily and a full count reconciliation at month-end, with exceptions reviewed by both operations and finance.
What is the most common mistake in this integration?
The most common mistake is leaving boundary events, such as returns, cancellations and cycle counts, without a clear owner. These events change quantities in several places, so gaps there produce the most discrepancies.
Sources
- Regulation (EU) 2016/679 (General Data Protection Regulation) - EUR-Lex, Publications Office of the European Union