Skip to main content

Entity Close & Reconciliation

Status: proposed, not built as of 2026-11-05

This page is a design proposal from June/July 2026 (konsolidat 2819413). None of the reconciliation models it names (gold_bank_recon, gold_payment_recon, gold_ap_subledger_recon, gold_ar_subledger_recon, gold_ic_operational_recon) exists in dbt_project/models/gold/ (45 models at konsolidat 54d072a), there is no Entity Close doctype among konsol's 65 doctypes, and epm_raw still holds GL, dimensions, rates and budgets only — no VendTrans / CustTrans streams (konsol/pipeline/streams.py, 14 streams).

What does exist is a group-level close with per-entity intake: a Trial Balance Submission per entity and period (CSV, validated, submitted), a TB Exception that the sign-off completeness gate accepts in place of a trial balance (konsol#303), period close / lock / reopen on the EPM Fiscal Year period rows, the Assertion Run that runs the dbt assertion suite for a period, and the /close app (konsol#305). See the Period Close guide. The text below is the proposal as written, with names updated (the konsol-exec app it targeted was removed with konsol#305; the close doctype is Assertion Run with child Assertion Step).

Problem​

konsol consolidates entity trial balances into a group result, but it has no model of the legal-entity close that must happen before consolidation — the controls that make each entity's numbers trustworthy. Today the whole thing runs as one group build: every entity's TB is computed and immediately consolidated in the same dbt pass. A group-level sign-off gate does exist (the Assertion Run doctype runs the dbt close-assertion suite and records green/red per Assertion Step) — but there is no per-entity lock, no sub-ledger reconciliations, and no per-entity gate before an entity flows into the group. A wrong or unreconciled entity is caught only after consolidation, if at all.

This document specifies the entity-close control layer and how it feeds consolidation, native to konsol (dbt gold models + doctypes + the /close app).

Framing: konsol sits on top of the ERP​

The ERP (D365 F&O, or another source) is where the transactional close happens — posting sub-ledgers, running depreciation, accruals, tax provision, payment processing. konsol is the control + consolidation layer on top of the GL it ingests. Its close role is:

reconcile → verify → lock → consolidate → report

So the close steps split into those that run in the ERP (konsol consumes the resulting GL) and those that konsol owns (reconciliations, the lock, and consolidation). This doc specifies the konsol-owned half.

Two concepts that live in two places​

These are routinely confused; the platform must keep them distinct.

FX — revaluation vs. translation

RevaluationTranslation
WhenEntity closeConsolidation
WhatRevalue an entity's own open foreign-currency monetary balances at the period-end rate → unrealized FX gain/loss on its booksTranslate a foreign subsidiary's whole TB into group currency (rate per account from the chart's fx_method: closing, average or historical) → CTA
Model(none — proposed; runs in the ERP today)gold_consolidated_trial_balance (+ gold_fx_revaluation, the CTA residual)

Note: gold_fx_revaluation is a translation-side model — it computes the CTA residual on gold_consolidated_trial_balance (cta_amount = −sum(group_amount) per entity-period), not entity-level monetary revaluation. There is no gold model performing entity FX revaluation today; that step runs in the ERP and arrives as GL. See FX translation and CTA.

Intercompany — reconciliation vs. elimination

Reconciliation (operational)Elimination
WhenEntity closeConsolidation
WhatEntity A's receivable from B must equal B's payable to A, at document level, before close — catches mismatches/disputesRemove the agreed IC balances so the group doesn't double-count
Model(proposed — invoice-level)gold_ic_eliminations + gold_ic_reconciliation + gold_ic_unmatched (GL level, by flagged Intercompany Account and partner entity; the /close Intercompany screen shows the pairs)

The entity-close control checklist​

Each control is a gate: it must be green (matched / within tolerance) before an entity's TB can lock. Status is against the platform as of 2026-11-05.

#ControlRuns inkonsol model / doctypeStatus
1Sub-ledger cut-off & posting (AP/AR/inv/FA/payroll)ERPconsumes resulting GLupstream
2Depreciation / amortizationERParrives as GLupstream
3Accruals / prepaids / deferrals / provisionsERP or topsideConsolidation Journal doctype (manual, approved)exists
4FX revaluationERP posts(none — arrives as GL; gold_fx_revaluation is CTA/translation, not this)proposed: surface/validate
5Bank reconciliation—proposed gold_bank_reconproposed; needs bank feed (MT940 / camt.053)
6Payment / cash-application rec—proposed gold_payment_reconproposed; needs settlement/payment tables
7AP/AR sub-ledger → GL tie-outGL side presentproposed gold_ap_subledger_recon / gold_ar_subledger_reconproposed; needs VendTrans/CustTrans
8Inventory / FA register → GL tie-out—proposedproposed
9IC reconciliation (operational)—proposed gold_ic_operational_reconproposed; needs IC-flagged sub-ledger
10Tax provisionERParrives as GLupstream
12TB review & flux / variance—gold_variance_*, gold_prior_year_comparison; the /close Numbers screenexists
13Entity TB intake—Trial Balance Submission (per entity and period, submit = declaration), TB Exception, sign-off completeness gateexists (group-level gate)
14Entity TB lock + sign-off—proposed Entity Close doctypeproposed, not built; close / lock / sign-off are per period on EPM Fiscal Year Period and Assertion Run
→Group consolidation—gold_consolidated_trial_balance → gold_fully_consolidated_tbexists

Close sequence (proposed)​

per entity: post sub-ledgers (ERP) ─► depreciation / accruals / tax (ERP)
─► FX revaluation ─► BANK rec ─► PAYMENT rec ─► AP/AR tie-out
─► IC rec (agree with counterparties) ─► flux review
─► ✔ LOCK entity TB (all gates green)
│ repeat per entity, then fan-in
▼
group: translate ─► eliminate IC ─► NCI / CTA ─► topside
─► fully consolidated TB ─► statements

Requirements​

R1: Reconciliation as a first-class result​

Each reconciliation is a dbt gold model producing rows with a common shape so any rec can be listed, drilled, and gated uniformly:

  • entity (data_area_id), fiscal_year, fiscal_period
  • recon_type (bank | payment | ap_subledger | ar_subledger | ic | …)
  • gl_side amount, subledger_side amount, variance (= gl − subledger)
  • status (matched | unmatched | within_tolerance), tolerance
  • key + drill columns (vendor/customer/document/counterparty as applicable)

A control is green when no unmatched rows exist above tolerance for the (entity, period).

R2: New source data (Airbyte streams)​

The sub-ledger detail is not ingested today (epm_raw is GL + dimensions + rates

  • budget only). Extend the source-d365-fno connector's stream list:
  • AP/AR tie-out (first cut): VendTrans, CustTrans (+ masters VendTable, CustTable for statements/aging)
  • Payment rec: settlement / payment-journal tables
  • Bank rec: bank statement feed — not a D365 GL entity; a separate source (MT940 / camt.053 import or a bank-feed connector)
  • IC operational rec: the IC-counterparty dimension already on GL (partner_data_area_id), plus IC-flagged sub-ledger transactions for document-level matching

R3: Entity Close gating​

  • An entity's TB can be locked for a period only when all applicable controls are green (or explicitly waived with a reason).
  • Group consolidation for a period should refuse (or warn loudly) if a participating entity is unlocked or has open exceptions.
  • Reuse Pipeline Run / Run Step for the run record. Persist the lock in a new Entity Close doctype keyed by (entity, fiscal_year, fiscal_period) holding lock status + per-control results + a waiver reason (the existing period close is keyed by period only: the EPM Fiscal Year Period row and the Assertion Run have no entity field).

R4: The /close app​

  • New Entity Close screen, scoped per entity, for the Entity Accountant persona (today that persona sees My work and Trial balances only; close-ui/src/nav.js). Its rail is the control checklist (Reconcile → Review → Lock), each stage green/red from R1.
  • The controls surface in the Checks screen too (a rec is an assertion that also carries its unmatched detail).
  • Period sign-off stays as it is; its precondition becomes "all entities locked" (today it is "a trial balance or a TB Exception for every in-scope entity").

R5: Reporting / consumption​

  • Expose reconciliation results + exceptions as a K.EPM dataset (Dataset + Measure) so variances and aging are queryable from Excel, same pattern as the consolidated facts.

Phased roadmap (proposed)​

  1. AP/AR control-account tie-out — highest value, least new data (GL side exists; add VendTrans/CustTrans). Delivers R1 + one rec end-to-end.
  2. Entity Close gating + lock (R3/R4) — the per-entity lock and the consolidation precondition.
  3. Payment rec, then operational IC rec.
  4. Bank rec — last, because it needs a new external data source.

Out of Scope​

  • Running the transactional close itself (depreciation, accruals, tax, payment processing) — those stay in the ERP.
  • Any external reconciliation engine (including the separate insta_close effort) — reconciliations are built native to konsol (gold *_recon models + doctypes + the /close app).

Evidence for the status label​

ClaimHow it was checked (2026-11-05)
No reconciliation model existsls dbt_project/models/gold — 45 files, none named *recon* except gold_ic_reconciliation (GL-level elimination support)
No Entity Close doctypekonsol/*/doctype/ — 65 doctypes, listed on the DocType Map
No sub-ledger streamskonsol/pipeline/streams.py — 14 D365 streams; _d365_fo__sources.yml
Per-entity intake and the completeness gate existtrial_balance_submission.py, tb_exception.py ("the sign-off completeness gate accepts a submitted one in place of a trial balance, konsol#303"), close/signoff_gate.py
Close / lock are per periodperiod_status.py docstring ("Period open / closed / locked status now lives on the EPM Fiscal Year's period rows", konsol#189); assertion_run.json autoname ASRT-{fiscal_year}-P{fiscal_period}-{####}