Consolidation Guide
Konsolidat consolidates the trial balances of many legal entities into one group result. You maintain the inputs in konsol (Frappe). The warehouse (dbt on ClickHouse) reads only those inputs and the submitted trial balances. It never guesses a rate, a share or an account code: when an input is missing, the build names it and stops.
This page lists each input, the konsol doctype that holds it, and what it produces downstream. For the step-by-step monthly close, see the Period Close Guide. For the formulas, see the design pages linked from each section.
Verified against the code on 2026-11-05 (konsolidat 54d072a, konsol 3e220ba8).
How the pieces fit
graph TD
TB[gold_trial_balance_by_partner<br/>entity movements, one row per partner] --> CTB[gold_consolidated_trial_balance<br/>translation, ownership split]
EO[gold_entity_ownership<br/>effective share per group, entity, period] --> CTB
GER[epm_staging.group_exchange_rates<br/>Group Exchange Rate] --> CTB
HER[epm_staging.historical_equity_rates<br/>Historical Equity Rate] --> CTB
MA[silver_main_accounts<br/>Main Account: fx_method, is_equity] --> CTB
CTB --> ICR[gold_ic_reconciliation<br/>pairs by partner] --> IC[gold_ic_eliminations]
CTB --> FX[gold_fx_revaluation<br/>CTA residual]
CJ[epm_staging.consolidation_adjustments<br/>Consolidation Journal] --> CADJ[gold_consolidation_adjustments]
EO --> EM[gold_equity_method_associates]
BC[Business Combination] --> ACQ[gold_business_combination_journal]
ACQ --> GWA[gold_goodwill_amortisation_journal]
BD[Business Disposal] --> DSP[gold_business_disposal_journal]
CTB --> FCTB[gold_fully_consolidated_tb<br/>6-layer union]
IC --> FCTB
FX --> FCTB
CADJ --> FCTB
EM --> FCTB
ACQ --> FCTB
GWA --> FCTB
DSP --> FCTB
FCTB --> YTD[gold_consolidated_ytd]
FCTB --> CJN[gold_consolidation_journal<br/>audit trail]
FCTB --> WF[gold_consolidation_waterfall]
The inputs you maintain
| Input | konsol doctype | Written to | Read by |
|---|---|---|---|
| Group structure | Consolidation Group (a tree; one root row per group with data_area_id blank) | epm_gold.consolidation_groups, epm_staging.consolidation_ancestry | gold_entity_ownership, every deal journal |
| Who owns how much, from when | Ownership Period | epm_staging.ownership_periods | gold_entity_ownership |
| Group chart of accounts | Main Account (Published rows only) | epm_staging.main_accounts → silver_main_accounts | translation, statements, deal journals |
| Translation rates | Group Exchange Rate (one Closing and one Average rate per currency pair and period) | epm_staging.group_exchange_rates | gold_consolidated_trial_balance, the deal journals |
| Equity at historical rate | Historical Equity Rate | epm_staging.historical_equity_rates | gold_consolidated_trial_balance |
| Fiscal calendar | EPM Fiscal Year (its period rows) | epm_staging.fiscal_periods | the Closing-period rate rule, the deal journals, reversals |
| Intercompany accounts | Intercompany Account (Published) and Main Account.allow_ic | epm_staging.intercompany_accounts | gold_ic_reconciliation, gold_ic_unmatched |
| Unrealised-profit rules | IC Elimination Rule (rule_type = unrealized_profit) and IC Balance | epm_staging.ic_elimination_rules, epm_staging.ic_balances | gold_ic_eliminations |
| Top-side entries | Consolidation Journal (header plus lines) | epm_staging.consolidation_adjustments | gold_consolidation_adjustments |
| Acquisitions | Business Combination (with Fair Value Allocation Profile to spread the fair-value total) | epm_staging.business_combinations and its child tables | gold_business_combination_journal |
| Disposals | Business Disposal | epm_staging.business_disposals, business_disposal_proceeds | gold_business_disposal_journal |
| Deal policy and accounts | the Consolidation Group root row (goodwill treatment, NCI measurement, bargain purchase, costs treatment, nine declared accounts) | epm_gold.consolidation_groups | the three deal journals |
Every submittable doctype in this list is approved by submit. A draft never reaches the warehouse. Approvals happen in the record's Actions → Approve / Reject menu in the Desk, or in the close app's Approvals screen (see the Period Close Guide).
Consolidation groups and ownership
Consolidation Group is structure only: which entity sits under which group, and the group's reporting_currency (required on every group node; it is a Link to ISO Currency). An entity belongs to exactly one node of the tree (assert_entity_in_one_consolidation_node).
Ownership Period is where ownership lives. One record says how much of a node its parent owns, from effective_date until end_date, and by which consolidation_method (full, proportional, equity or none). A sub-group is ownable too: leave data_area_id blank for a group node.
gold_entity_ownership resolves the two into one answer per (group, entity, period): it walks every link of the chain from the entity up to each ancestor group, picks the ownership period covering the period's first day (an ASOF join, with end_date checked), and multiplies the links. A 60%-owned subsidiary of an 80%-owned sub-group reaches the top group at effective_ownership_pct = 0.48. The weakest link's method governs: nothing under an equity-held sub-group is line-consolidated into its parent. A chain with a missing link gives has_complete_chain = 0 and effective 0; assert_ownership_chain_complete fails the build and names the entity.
The acquisition and disposal fields still present on Ownership Period (acquisition_price, fair_value_adjustment, disposal_price) are read by no journal any more. The deal itself is a Business Combination or Business Disposal (konsolidat#198). Only acquisition_date is still read, by the P&L proration (see Step-Acquisition).
Group chart of accounts
Main Account is the group chart. Each account declares its account_type, statement_section, normal_balance, fx_method (closing, average or historical), is_retained_earnings, allow_ic and cash-flow attributes. Only Published rows are in the chart. A P&L account declared historical, or a balance-sheet account declared average, stops the build before silver_main_accounts is replaced (governed_chart_guard).
An account a trial balance posts to that is not in the chart stays in the trial balance, reaches neither statement, and translates at the closing rate. assert_undeclared_accounts_in_trial_balance (warn) names it.
Currency translation
Rates come only from Group Exchange Rate: one approved Closing and one Average rate per (from currency, group reporting currency, fiscal year, fiscal period). A rate is entered as a quote per 1, 10, 100, 1,000 or 10,000 units and published as the true rate (units of the group currency per 1 unit of the from currency). The ERP feed (silver_exchange_rates) only pre-fills drafts. There is no fallback: a translated currency with no usable rate stops the build before anything is deleted (governed_rate_guard, konsolidat#93).
A Closing-type period (the year-end close period, typically P13) has no rates of its own. It translates at the same fiscal year's last Regular period's rates (rate_period_map(), konsolidat#199).
Rate per account
The rate follows the chart's fx_method, not the statement:
fx_method | Rate used |
|---|---|
closing, or undeclared | the period's Closing rate |
average | the period's Average rate |
historical | the Historical Equity Rate whose rate_date is the latest on or before the period date; before the first tranche, the Closing rate |
A same-currency entity (functional currency equals the group currency) translates at 1.0 by definition.
Formulas
Per row of gold_consolidated_trial_balance, keyed by group, entity, period, account, partner and dimensions:
local_amount = period_debit − period_credit
translated_amount = local_amount × translation_rate + retranslation_amount
group_amount = translated_amount × ownership_pct
nci_amount = translated_amount × (1 − ownership_pct)
retranslation_amount is non-zero on two kinds of row:
- a non-equity balance-sheet account declared
closing(or undeclared): its cumulative balance is retranslated at each period's closing rate, so the balance summed to a period equals the local balance times that period's closing rate (konsolidat#257). Equity is never revalued. - the year-end close rows a period-end-balance file synthesises: the close moves amounts that are already translated, so it creates no exchange difference (konsolidat#259).
Example: an 80%-owned UK entity books GBP 100,000 of revenue (declared average), Average rate 1.27 USD per GBP:
translated_amount = 100,000 × 1.27 = 127,000 USD
group_amount = 127,000 × 0.80 = 101,600 USD
nci_amount = 127,000 × 0.20 = 25,400 USD
Tests: assert_translation_follows_fx_method, assert_translated_amount_formula, assert_group_amount_formula, assert_nci_plus_group_equals_translated, assert_nci_zero_for_full_ownership, assert_bs_translated_at_closing_rate, assert_equity_never_revalued, assert_every_translated_currency_has_a_governed_rate.
See FX Translation.
Currency translation adjustment (CTA)
Each entity's local trial balance sums to zero. After translating accounts at different rates it no longer does. gold_fx_revaluation posts the residual as one row per entity and period on the pseudo-account CTA:
cta_amount = −sum(group_amount) over every account of the entity in the period
So, by construction, the translated group balance sheet balances. A same-currency entity has CTA 0. On a full disposal the entity's accumulated CTA is recycled to the gain or loss by the cta line of gold_business_disposal_journal (IAS 21.48).
Tests: assert_cta_not_zero_when_rates_differ, assert_cta_zero_for_same_currency, assert_year_end_close_carries_no_cta, assert_end_to_end_bs_balances.
See CTA.
Intercompany reconciliation and elimination
An account is intercompany because the chart flags it: a Published Intercompany Account names the account and the counterpart_account the partner books the other side on (blank means the same account). Each trial-balance row on such an account may carry a partner_data_area_id.
gold_ic_reconciliation pairs (entity, partner, account) with (partner, entity, counterpart), one row per pair and period, on the full translated amount at 100%. A balance-sheet pair compares the balance to date; a P&L pair compares the period's movement. A difference is labelled by cause (booking, fx or none) and judged against the group's ic_difference_tolerance (declared on the Consolidation Group root). Rows with no partner are never eliminated; gold_ic_unmatched lists them.
gold_ic_eliminations posts, per pair, a two-legged entry that nets to zero:
matched: the matched amount, eliminated from both sides at the share both hold;nci: when the group holds the two sides at different shares, the surplus goes to the group's NCI line (thenci_accounton the Consolidation Group root, or the placeholderNCIuntil one is declared);difference: the rest of each side, moved to the group'sic_difference_accountand labelled with the cause. A group without one books no difference.
The group view feeds gold_fully_consolidated_tb; the nci view is the minority's share, which the consolidation report adds for its 100% column.
IC Elimination Rule survives only for rule_type = unrealized_profit: ending_inventory_from_ic × margin_pct / 100 from the submitted IC Balance of a selling and buying entity pair. A balance-type rule eliminates nothing (konsolidat#148).
Tests: assert_ic_elimination_nets_zero, assert_ic_reconciliation_matched, assert_ic_nci_line_nets_zero, assert_unrealized_profit_elimination.
Top-side journals
A Consolidation Journal is a header (group, adjustment_type topside or reclassification, period, optional reversal period) with lines that each name an entity, an account and a debit or a credit. It must balance to the cent. Its lifecycle is Draft → Pending Approval → Approved → Reversed. Only Approved and Reversed journals reach gold_consolidation_adjustments; a journal that names a reversal period gets one auto_reversal row per line in exactly that period, debit and credit swapped.
Tests: assert_topside_journal_balanced, assert_draft_excluded_from_consolidated, assert_auto_reversal_generated, assert_auto_reversal_negates_original.
See Top-Side Journals.
Equity-method associates
An entity whose resolved consolidation_method is equity is not line-consolidated. gold_equity_method_associates posts two lines per group, entity and period: EQ_INCOME and EQ_INVEST, each net_income × effective_ownership_pct. See Equity Method.
Acquisitions and disposals
A Business Combination (consideration lines, the acquired balance sheet with fair-value adjustments, acquisition costs, an optional NCI measurement override) is approved by submit. gold_business_combination_journal posts one balanced journal per deal, ACQ-<group>-<entity>-<date>, in the acquisition period: equity eliminated, fair-value uplift, goodwill or bargain gain, the investment credit, NCI, costs. When the group's policy is Amortise, gold_goodwill_amortisation_journal posts GWA-… instalments every Regular period.
A Business Disposal (proceeds lines, disposal date) posts DSP-<group>-<entity>-<date> through gold_business_disposal_journal: the entity's balances derecognised, goodwill net of amortisation, fair-value adjustments, CTA recycled, NCI, proceeds, and the gain or loss as the balancing line. Only a full disposal (retained_interest_pct = 0) posts today.
The accounts and the policy come from the Consolidation Group root row. A deal whose group has not declared them posts nothing; assert_acquisition_accounts_declared and assert_disposal_accounts_declared name the gap and stop the build. A partial-share deal is refused by the same tests until konsolidat#204 decides how layer 1 and the journals share the minority.
See Step-Acquisition and Disposal.
Fully consolidated trial balance (6-layer union)
gold_fully_consolidated_tb is rebuilt whole on every run and unions six layers. Every row carries an adjustment_type (assert_adjustment_type_populated):
| Layer | adjustment_type | Source | Amount |
|---|---|---|---|
| 1. Entity | entity | gold_consolidated_trial_balance, summed over partners | group_amount |
| 2. IC elimination | ic_elimination, ic_elimination_nci | gold_ic_eliminations, elimination_view = 'group', two rows per entry | debit_elimination, credit_elimination |
| 3. CTA | cta | gold_fx_revaluation | cta_amount |
| 4. Top-side | topside, reclassification, auto_reversal | gold_consolidation_adjustments, summed to the account grain | net_amount |
| 5. Equity method | equity_method | gold_equity_method_associates | amount |
| 6. Acquisition and disposal | pnl_proration, acquisition, goodwill_amortisation, disposal | gold_acquisition_adjustments, gold_business_combination_journal, gold_goodwill_amortisation_journal, gold_business_disposal_journal | adjustment_amount |
Downstream:
gold_consolidated_ytd: a running total per group, entity, year, account and adjustment type.gold_consolidation_journal: the audit trail, one row per journal line for layer 4 and one per row for the other layers (assert_consolidation_journal_names_every_journal).gold_consolidation_waterfall: one row per group and period, entity → after IC → after CTA → after top-side → after equity method → final (assert_waterfall_reconciles).
Tests: assert_fctb_entity_layer_ties, assert_all_layers_present, assert_journal_grain_unique, assert_end_to_end_bs_balances.
Reading the result
In Excel, entity-level figures come from the add-in's custom functions, for example:
=K.EPM("USMF", 2024, "FY", "401100")
The consolidated statement for a period is the close app's Numbers screen (statement_api.get_statement, with a drill and an Excel export). For other consolidated reports, query gold_fully_consolidated_tb, gold_consolidated_ytd or gold_consolidation_waterfall directly. Column lists are in the Gold Models data dictionary.
Next steps
- Period Close Guide: the close, step by step
- Budgeting Guide
- Gold Models