Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

11.1 KB
Raw Blame

Accounting Posting Corrections Research: Best Practices Survey

Summary

Research refreshed on 2026-09-07 for the selected fixes: separate tax and customer shipping from product-sales postings, normalize transaction FX, and correct consolidation calculations. This is a focused update to shipping/tax research, FX research, and financial reporting research. Their older Carbon inventories are not current implementation evidence. Current code was checked at 0a9aef2444.

Competitors Surveyed

  • SAP S/4HANA — tax account assignment, currency quotation, consolidation and correction of posted documents.
  • Oracle NetSuite — shipping income accounts, tax controls, transaction/consolidation rates, earnings presentation and reversals.
  • Xero and QuickBooks Online — adapter-specific rate conventions affecting Carbon's existing integrations.

Key Consensus Patterns

1. Separate tax collected from sales consideration

  • SAP: input and output tax have separate accounting treatment; non-deductible tax may remain in asset/expense costs. Input/output tax.
  • NetSuite: tax control accounts distinguish sales-tax liability from purchase-tax assets. Tax control accounts.
  • Rationale: splitting collected sales tax is necessary even without a new tax-determination subsystem. Recoverability must be known before changing purchase-tax capitalization.

2. Customer shipping charges and carrier expenses are different amounts

  • NetSuite: shipping items allocate customer shipping charges to an income account; handling can have its own account. Shipping items, Shipping account selection.
  • SAP: the researched tax/account-assignment documentation supports separating underlying consideration from tax; it does not settle a single mandatory shipping account presentation for Carbon.
  • Rationale: a separate Shipping Income account cleans up product-sales reporting. A customer charge is not evidence of the actual carrier expense. Do not create a freight-expense accrual from a billed-charge field.

3. FX arithmetic follows the stored quotation

  • SAP: direct and indirect quotation represent inverse contracts. Quotation definitions.
  • NetSuite: its rate-list contract uses source amount multiplied by the rate to obtain base. Rate-list formula.
  • Carbon inference: preserve Carbon's foreign-units-per-base-unit contract: document-to-base divides, base-to-document multiplies, and already-base fields receive no second conversion. A provider's different quotation requires inversion at that adapter boundary.

4. CTA captures translation differences, not source-accounting errors

  • NetSuite: assets/liabilities generally use current rates, income/expenses average rates, and equity historical rates; CTA reconciles the resulting translated statements. CTA overview.
  • SAP: translation methods and difference handling distinguish balances translated under different rules. Translation differences.
  • Carbon inference: natural-balance Expense must contribute to the debit side. A balanced Cash 80 / Revenue 100 / Expense 20 source at all rates 1 has CTA 0. The current function returns −40.

5. Earnings presentation has an explicit fiscal boundary

  • NetSuite: prior-fiscal-year earnings appear in retained earnings; current-year earnings appear in net income. Year-end closing.
  • SAP: standard translation can preserve opening group-currency values and apply period-specific translation methods. Translation methods.
  • Rationale: cumulative balances, period activity and fiscal-year income must not be substituted for one another. This informs regression boundaries; a full retained-earnings/history subsystem is broader than fixing the demonstrated CTA sign error.

6. Preserve posted facts and reverse their original values

  • SAP: posted monetary/account fields are protected; correction flows can reverse original postings and repost under corrected mappings. Protected posted fields, Reversal/reposting.
  • NetSuite: reversal entries retain the original exchange rate and a relationship to the original journal. Journal reversal.
  • Rationale: a new posting formula does not authorize rewriting posted history. Reversals invert actual booked lines. Open legacy documents require an explicit transition design so normalized settlements do not strand old control balances.

Answers to Research Questions

  1. Where should invoice tax post? Collected sales tax to the configured liability account. Purchase tax recovery depends on classification; current Carbon has no recoverability model.
  2. Where should customer shipping charges post? A separate configured shipping-income account is the grounded default; carrier cost needs its own actual-cost source.
  3. Which FX direction is correct? The direction defined by each stored rate. Carbon uses foreign/base, so divide only document-denominated values; leave base fields unchanged.
  4. What should CTA reconcile? Differences introduced by translation rules after the source ledger balances under the correct account signs.
  5. How should earnings periods work? Distinguish current activity, cumulative balance and fiscal-year earnings; retain the existing scope boundary while testing the correction.
  6. How should existing erroneous postings be corrected? Preserve them and use linked corrections/reversals with original values and period controls. Exact rollout/remediation coverage is a product/accounting decision.

Competitor-Specific Details

SAP

Direct versus indirect quotation is a configurable convention. Carbon should borrow the explicitness, not copy an arithmetic operator from unrelated SAP configuration.

NetSuite

Shipping-account assignment is an income-account setting. Its documented transaction-rate formula is opposite Carbon's quotation, so adapter conversions need tests.

Existing Carbon providers

  • Xero's multicurrency documentation is the source for its transaction-rate contract.
  • QuickBooks' ExchangeRate property documentation specifies home currency per foreign unit, requiring the reciprocal of Carbon's rate.
  • Unsupported provider FX paths must remain explicitly unsupported; do not assume another provider's rate convention.
  • Rillet's current Create a bill schema defines exchange_rate as an object with base, target, string rate, and date. Carbon currently sends a scalar from its bill adapter. The adapter needs a schema-valid, explicitly directed pair and a contract fixture; copying the scalar rate from the Xero adapter is insufficient. The schema establishes the object shape; currency-direction verification must accompany the adapter change.
  • Rillet's AR_ONLY invoice schema uses product-backed lines, native header/item tax, and optional line revenue account metadata; its create request does not expose exchange_rate. Keep the current AR_ONLY scope and distinguish document-currency correctness from provider-owned base translation. Its product schema supports the ONE_TIME shipping helper and revenue account mapping.
  • QuickBooks' existing item-based invoice path needs a Service item whose IncomeAccountRef resolves to Shipping Revenue. Native tax detail and rate membership/percentage rules require genuine remote tax references. Mapping a uniquely compatible existing sales tax code is a Carbon implementation choice; ambiguous or unsupported tax configuration must produce a preflight warning rather than tax-as-revenue or a fabricated ID.

Recommended Approach for Carbon

  1. Use a named base-currency sales breakdown for goods/add-ons, billed freight and tax; route each separately.
  2. Preserve current tax bases and purchase-tax capitalization during this correction; avoid introducing new tax-determination policy.
  3. Normalize invoice, receipt, payment, memo, settlement, tie-out, UI and provider boundaries as one coordinated contract.
  4. Correct CTA signs and account-id resolution through actual report call sites, with same-currency and mixed-rate tests.
  5. Follow the user's explicit adoption assumption: accounting has no users yet. Correct the formulas directly without legacy-version or historical-remediation tooling. Preserve normal reversal correctness for future postings; do not interpret this assumption as requiring deletion of existing operational data.

Carbon Scope Resolution

On 2026-09-07 the user confirmed a separate shipping-revenue default column, a Shipping Revenue account under Revenue, and backfilled company defaults. They subsequently resolved the history question with: “we can assume that no one is use accounting yet and just fix it.” General competitor practices for mature ledgers above remain useful context, but a legacy accounting transition is unnecessary for this scoped implementation. The finalized design is Accounting Posting Corrections.

Sources

Primary source URLs are attached directly to the claims above. Existing repository research is linked in Summary for historical context; current source code takes precedence over its older Carbon observations.