Introduction
A distribution company launches a new ordering portal. Orders flow in faster than ever, but on the third working day of the month, the finance team is still fixing invoices that were posted to the wrong period, customers that exist twice with slightly different names, and payments that the portal marked as received but the accounting system never saw.

The accounting system is old but trusted. It holds the ledger, the tax records, and the audited numbers. The new tools are faster and friendlier, but they are not the books. The integration has to respect that difference, especially around period closing, where a single late posting can reopen work that finance considered done.

In this article you will learn how to decide which system owns which data, how to design a sync layer with an anti-corruption boundary, how to handle accounting periods and posting dates, and how to give finance the reconciliation tools that make closings predictable.

Decide Which System Owns What
Every entity needs one system of record. Customers might be created in the CRM but owned by the accounting system once they have a ledger account. Products and prices might live in the ERP. Orders live in the portal until they are invoiced, at which point the invoice in the accounting system becomes the legal document.

Write this down as a table: entity, system of record, direction of sync, and which fields each side may change. Conflicts that seemed technical often turn out to be ownership questions nobody had answered, such as whether sales can edit a customer's billing address after the first invoice.

Build an Anti-Corruption Layer
Do not let the legacy system's data model leak into your new applications. Put a sync service between them that translates concepts, keeps a mapping of IDs, and queues all writes to the legacy side.

CREATE TABLE external_refs (
entity text NOT NULL, -- 'customer', 'invoice', 'item'
internal_id bigint NOT NULL,
system text NOT NULL, -- 'tally', 'sap_b1', 'quickbooks'
external_id text NOT NULL,
PRIMARY KEY (entity, internal_id, system),
UNIQUE (entity, system, external_id)
);
CREATE TABLE erp_outbox (
id bigserial PRIMARY KEY, entity text, internal_id bigint,
operation text, payload jsonb, posting_date date,
status text DEFAULT 'pending', attempts int DEFAULT 0, last_error text
);

Legacy systems often have limited APIs. Some expose SOAP or REST services, some accept XML over HTTP (Tally, widely used in India, works this way), and some only support file imports. The sync service hides those details. If the legacy system is down or slow, writes wait in the outbox, and the new application keeps working.

Respect Accounting Periods and Posting Dates
Accountants close periods. Once March is closed, nothing should post into March without a deliberate adjustment. Your sync layer needs to know which periods are open and what the posting date for each transaction should be.

Separate the business date from the posting date. An order delivered on 31 March and invoiced on 2 April might belong to March for revenue purposes, depending on the company's policy. Make that rule explicit in the sync layer. Before posting, check if the target period is open; if it is closed, hold the transaction in an exception queue for finance to decide, instead of letting the legacy system reject it silently or post it to the current period.

Give Finance Reconciliation, Not Just Sync
Sync is never perfect, so finance needs to see where the two systems disagree. Build a daily reconciliation report that compares counts and totals by period and entity type: invoices issued in the portal versus invoices posted in the ledger, payments received versus payments applied, and customer balances on both sides. Each mismatch should link to the records involved and to the sync log for those records.

Add a pre-close checklist screen: outbox empty, exception queue cleared, reconciliation differences explained. Finance can then close the period knowing the integration is not hiding anything.

Practical Examples: Real-World Use Cases
A building supplies distributor connected its new B2B portal to Tally through a sync service with an outbox. Invoices are posted within a minute when Tally is reachable and queued during the nightly backup. Month-end close went from six working days to two because finance no longer chased missing invoices.

A services company integrated its project management tool with SAP Business One. Time entries for a closed month are held in an exception queue and posted as adjustments in the next period with a note, which satisfied the auditors.

A wholesale importer made the accounting system the owner of customer credit limits. The CRM shows the limit as read-only, and orders that exceed it are flagged before they reach the warehouse.

Common Mistakes to Avoid

  • Writing directly to the legacy database instead of its supported interfaces.

  • Letting both systems edit the same fields without an ownership rule.

  • Posting transactions with the sync date instead of the correct posting date.

  • Treating sync errors as logs instead of an exception queue someone owns.

  • Building sync without a reconciliation report for finance.

Best Practices: Actionable Tips

  • Document system of record and allowed edits for every synced entity.

  • Keep an ID mapping table and never rely on names or codes to match records.

  • Queue all writes to the legacy system and make them idempotent.

  • Check period status before posting and route closed-period items to finance.

  • Involve the finance team in testing, using last month's real transactions.

Conclusion
A clean sync layer lets you modernize sales and operations without disrupting the books. Assign a system of record for every entity, isolate the legacy system behind a translating, queue-based sync service, handle posting dates and closed periods explicitly, and give finance reconciliation views they can trust. The takeaway: design the integration around month-end close, because that is where finance will judge it.

Integrate Your ERP the Right Way With Parallaxis
Parallaxis builds ERP solutions and integrations for growing B2B companies, connecting portals, CRMs, and operations tools to accounting systems such as Tally, SAP Business One, and QuickBooks. If month-end close is slowed down by integration problems, visit parallaxis.in to explore our ERP solutions or talk with our team.