Skip to main content

Top-Side Journal Adjustments

Group-level entries that exist in no subsidiary's ledger: reclassifications, audit adjustments, an impairment, the remeasurement of a retained interest, anything the deal journals do not produce. Verified against konsol consolidation_journal and konsol/close/journal_api.py, and dbt_project/models/gold/gold_consolidation_adjustments.sql, on 2026-11-05 (konsol 3e220ba8, konsolidat 54d072a).

The document: Consolidation Journal (konsol#292)​

A Consolidation Journal is a header with lines. It replaced the single-line Consolidation Adjustment doctype on 27 Sep 2026 (konsol#305-D2-1).

Header fieldMeaning
consolidation_groupthe group the entry belongs to
adjustment_typetopside or reclassification
fiscal_year, fiscal_periodthe period posted; must be a declared period
reverse_fiscal_year, reverse_fiscal_periodoptional: the period the entry reverses in (0/0 = none)
descriptionwhy
statusDraft → Pending Approval → Approved → Reversed

Each Consolidation Journal Line names data_area_id (an Entity), main_account (a Main Account) and exactly one of debit_amount or credit_amount, plus a description. Rules (konsol/close/journal_model.py): no negative amount, at least two lines, and the journal balances exact to the cent in Decimal arithmetic. There is no materiality floor here.

Submit is the approval; cancel is the reversal. Only approval_api.approve and approval_api.reject approve or reject it (a reject needs a reason). On approval the reversal period is checked: declared, Regular, later than the journal's period, and Open. A cancel is refused unless the reversal period is still Open. Approving a journal after a period's sign-off voids that signature.

Where a user works​

  • The close app's Adjustments screen (/close/<year>/<period>/adjustments): journal_api.get_journals lists the period's journals with each one's effect per statement heading; journal_api.save_journal(fiscal_year, fiscal_period, consolidation_group, adjustment_type, description, lines, reverse_fiscal_year, reverse_fiscal_period, name) drafts or edits; journal_api.send_for_approval(name) moves it to Pending Approval.
  • The Approvals screen (approvals_api.get_queue) or the record's Actions → Approve / Reject menu in the Desk (approval_api.approve, approval_api.reject).
  • Auto-reversals are visible in the period they reverse into (konsol#305 6.5).

There is no separate REST endpoint for posting adjustments. The Desk form of Consolidation Journal is the other entry point.

The warehouse table​

The doctype is the one writer of epm_staging.consolidation_adjustments: one row per line, rebuilt after every submit, cancel and delete. Columns the gold model reads: consolidation_group, adjustment_type, journal_id, data_area_id, fiscal_year, fiscal_period, main_account, debit_amount, credit_amount, description, posted_by, status, approved_by, reversal_journal_id, reverse_fiscal_year, reverse_fiscal_period.

The model: gold_consolidation_adjustments​

where sa.status in ('Approved', 'Reversed')

Only Approved and Reversed lines flow through; a Draft or Pending Approval journal never reaches the consolidated figures (assert_draft_excluded_from_consolidated). net_amount = debit_amount − credit_amount.

Auto-reversal (konsol#305-D2-11). For every line of an Approved journal with reverse_fiscal_year > 0 and no reversal_journal_id, the model adds one row in exactly the named period with adjustment_type = 'auto_reversal', debit and credit swapped, the same journal_id, posted_by = 'system' and description Auto-reversal of <journal_id>. The old +N periods arithmetic is gone. The seed half that once stood in for an empty staging table is gone too (konsolidat#146).

How it posts into consolidation​

Layer 4 of gold_fully_consolidated_tb sums the lines to the grain (group, entity, year, period, account, adjustment_type) and reports any(journal_id), so gold_consolidated_ytd keeps one running total per key. gold_consolidation_journal, the audit trail, reads the lines unsummed from gold_consolidation_adjustments so that every journal is named (assert_consolidation_journal_names_every_journal). The waterfall's topside_amount sums topside, reclassification and auto_reversal.

Every row of the consolidated trial balance carries an adjustment_type: entity, ic_elimination, ic_elimination_nci, cta, topside, reclassification, auto_reversal, equity_method, pnl_proration, acquisition, goodwill_amortisation, disposal.

Tests​

TestProves
assert_topside_journal_balancedper journal_id, sum(debit_amount) = sum(credit_amount) within 0.01
assert_draft_excluded_from_consolidatedno Draft line reaches gold_consolidation_adjustments
assert_auto_reversal_generatedevery line of an Approved journal that names a reversal period has an auto_reversal row in exactly that period, and none exists without one
assert_auto_reversal_period_declaredevery reversal lands on a declared Regular period after the journal's own
assert_auto_reversal_negates_originaleach reversal nets to exactly minus its original line
assert_adjustment_type_populatedevery row of gold_fully_consolidated_tb has an adjustment_type
assert_journal_grain_uniquelayer 4 and layer 6 carry one row per YTD partition key
assert_consolidation_journal_names_every_journalevery journal_id in gold_consolidation_adjustments appears in gold_consolidation_journal
assert_end_to_end_bs_balancesthe consolidated trial balance still sums to zero per group and period with the top-side layer in

Out of scope​

  • Recurring journal templates.
  • Journal-line dimensions in the consolidated layers: nine of the ten layers of gold_fully_consolidated_tb carry blank dimensions (konsolidat#245, a decision still open).

Source files​

  • konsol: konsol/consolidation/doctype/consolidation_journal, consolidation_journal_line, konsol/close/journal_api.py, journal_model.py, approval_api.py
  • dbt_project/models/gold/gold_consolidation_adjustments.sql, gold_fully_consolidated_tb.sql (layer 4), gold_consolidation_journal.sql