- Home
- News from us
- Guide
ERP integration for e-commerce and dealer portals: why stock and ledgers drift
Why do inventory counts and dealer ledgers drift apart between web stores and accounting ERP software? Learn the outbox and ledger rules that keep them synced.

Early in the morning, a dealer places a ten-carton order through your web portal while a field rep promises the last five cartons on a phone call. At noon, your accountant opens Logo, Mikro, Netsis or another ERP system to issue the invoice and discovers that physical shelves and online stock disagree—or worse, a dealer over their credit limit just slipped another shipment through. As wholesalers and multi-channel retailers grow, operational losses rarely come from weak sales; they come from silent data drift between websites and accounting software.
01What is ERP and accounting integration?
ERP and accounting integration is the automated bridge that synchronizes SKU master data, stock balances, contract pricing, confirmed orders, dispatch notes and customer ledgers between your public e-commerce store, B2B dealer portal or retail POS and your core accounting system without manual re-entry. When built correctly, sales, warehouse and finance teams look at the exact same truth all day long.
Drift usually begins when integration is treated as an overnight batch job—like dropping a CSV file at 3 a.m. or polling inventory once every few hours. At live wholesale velocity, even a two-hour gap allows two channels to sell the exact same last pallet.
02Why do stock counts and dealer balances fall out of sync?
Nearly every synchronization discrepancy we audit in production traces back to four concrete architectural blind spots:
| Cause of drift | What happens in practice | How clean engineering prevents it |
|---|---|---|
| Unclear system of record | Prices or stock get edited inside both web and ERP | Assign exactly one authoritative owner per data domain |
| Temporary network timeouts | Accounting server drops briefly and skips an order | Queue every outgoing order via a reliable Outbox worker |
| Incomplete cancellations | Cancelled order restores neither stock nor credit balance | Wrap cancellation reversals cleanly in atomic transactions |
| Client-side decimal rounding | Browser floats create penny mismatches on ERP invoices | Compute all discounts, VAT and totals server-side in decimals |
If wholesale buyers still send orders over WhatsApp or phone before staff re-type them into accounting later, start by reviewing how structured B2B intake works in our dealer portal guide.
03How do you design an integration that never drops orders?
Dependable synchronization establishes strict ownership and fault recovery from day one:
- Lock direction of truth per entity. If your ERP manages purchasing and SKU creation, treat the ERP as source of truth for master item codes and inbound stock receipts, while web stores and dealer portals push confirmed orders and field collections cleanly back to accounting.
- Use a Transactional Outbox queue for deliveries. Never lose an approved order simply because an office server restarted or a webhook timed out. Writing an outbox event alongside order confirmation lets an async worker retry safely until accounting acknowledges receipt once—never twice.
- Use append-only ledgers and exact decimal math. Rather than overwriting balance columns destructively, log invoices, payments, returns and cancellations as immutable rows so year-end reconciliation stays auditable down to the cent.
- Enforce credit limits before approval. A dealer portal should check open balance against limit in real time on the server, automatically routing over-limit baskets into manager review.
- Account for offline branch scenarios. Retail counters cannot freeze if internet drops for an hour. Desktop POS systems like BayiKasa commit sales immediately to local SQLite storage and synchronize cleanly to the cloud ledger once connectivity returns.
04Keeping every channel aligned on one inventory ledger
Many wholesalers ship out of a single warehouse across retail e-commerce, regional B2B portals like Bayibox and mobile field reps taking orders on route visits. Without a shared multi-tenant PostgreSQL layer backed by strict permissions, field collections recorded in a notebook leave customer balances outdated for days.
Connecting field orders, portal checkouts and central accounting removes redundant typing across departments while leaving zero cut taken from your sales. All data, ledgers and domain registration remain yours—see full options on our pricing page.
05Four questions to settle before starting integration
Clearing these operational rules upfront cuts integration setup time dramatically:
- Do SKU codes in your online catalog match your accounting item codes character for character?
- Are dealer discounts assigned by price tier or per customer-item exception?
- Who holds final sign-off for bank transfers, cheques and over-limit approvals?
- Does your ERP database run on a cloud endpoint or on a local office server?
Once those four answers are documented, your web-to-ERP bridge sits on predictable engineering ground.
06Frequently asked questions
Can websites integrate with established ERP packages like Logo, Mikro or Netsis?
Yes. Depending on the version and hosting setup of your accounting suite, secure API bridges or gateway agents can synchronize inventory levels, order entries and ledger movements automatically.
What happens if our office accounting server loses internet briefly?
With an Outbox delivery pattern, customer orders are saved safely inside the portal database and wait in queue until your accounting endpoint responds, ensuring zero lost orders and zero duplicate invoices.
Do we need to rewrite accounting product names for the website?
No. Linking by clean SKU codes lets internal technical descriptions remain untouched inside accounting while displaying buyer-friendly titles, photos and technical tables online.
If a buyer cancels an order, does inventory update automatically?
Yes. Cleanly designed order state machines release reserved stock back to available inventory immediately upon cancellation and record a matching ledger reversal entry.
Can we export our data if we ever change tools in the future?
Yes. Both your domain and your complete ledger, product and order history stay with you with clean export available at any time.