Konsol — DocType Map
All 65 konsol doctypes (excluding core Frappe) at konsol 3e220ba8 (2026-11-05): 13 in the Pipeline module, 25 in EPM, 27 in Consolidation. Of these, 44 are documents, 17 are child tables, 2 are Singles (EPM Settings, Close Settings) and 2 are read-only Virtual doctypes.
Konsol is the source of truth for configuration and governance. Doctypes in the Pipeline and EPM modules decide what the warehouse builds and how it is shaped: a publish regenerates the konsol-managed block of dbt_project.yml and the ClickHouse DDL, and writes reference rows to epm_staging.* / epm_gold.* tables that dbt reads as sources. Doctypes in the Consolidation module hold the approved inputs of the close (trial balances, deals, rates, ownership, journals) and the close itself; dbt computes the numbers in ClickHouse off that registry.
Several doctypes were renamed on 2 July 2026 (konsol 547ff9f8 #85 and e61594dc #86): Pipeline Definition → Pipeline, Step Definition → Pipeline Step, Pipeline Step → Run Step, Build Domain → Build Scope, Gold Model → Build Model, Pipeline Build Request → Build Approval, Scenario Definition → Scenario, and the close run doctype → Assertion Run (child Assertion Step). The fact-table registry became Dataset (children Dataset Measure / Dataset Dimension). The old per-cell budget doctype and its child were retired (patch retire_budget_input); the live budget chain is Budget Cycle → Budget Sheet → Budget Line, plus Budget Annual Input. The Consolidation Adjustment doctype was deleted on 27 Sep 2026 (konsol 6cc37309, #305 J12) and replaced by Consolidation Journal. Period Status is retired but kept read-only as history (konsol#189).
Data flow
ERP SOURCES (D365 F&O / ERPNext) Entities without an ERP feed
│ Airbyte → epm_raw │ Trial Balance Upload / Trial Balance Submission (CSV)
▼ ▼
1. PIPELINE ──────► 2. EPM MODEL / REGISTRY ──────► 3. BUDGET ──────► 4. CONSOLIDATION AND CLOSE ──► OUTPUTS
Connector, Dimension, Measure, Dataset, Budget Cycle, Consolidation Group, Ownership, Excel add-in (K.*),
Pipeline Run, Main Account, Entity, Budget Sheet, Group Exchange Rate, deals, REST API, /close app,
Build Approval EPM Fiscal Year Spread Profile journals, Assertion Run Desk reports
Module: Pipeline (13)
Extraction, governed dbt builds, orchestration and global settings.
| Doctype | Kind | Purpose |
|---|---|---|
| Connector | Document | Registry of live ERP connector instances: erp_type (d365_fo, d365_bc, sap_s4, sap_ecc, sap_b1, erpnext), extract and write-back credentials, Airbyte provisioning, sync status, legal entities served, dimension column maps. Buttons: Test Extract, Test Writeback, Test & Provision Airbyte. Note: despite the controller's docstring, konsol does not regenerate the dbt erp_sources var from connectors (dbt_config.py, konsolidat#139); that list is hand-edited. |
| Connector Legal Entity | child of Connector | Legal entity_ids the connector serves |
| Connector Dimension Map | child of Connector | Per-ERP dimension → column mappings |
| Connector Health | Document | Derived per-connector sync-health snapshot (Never / Running / Succeeded / Failed / Stale), refreshed every 5 minutes by refresh_connector_health; never edited by hand |
| Pipeline | Document | DAG template: ordered steps with dependencies and default params |
| Pipeline Step | child of Pipeline | One template step: step_id, step_type (airbyte_sync, dbt_seed, dbt_run, dbt_build, dbt_test, close_assertions, signoff, cube_refresh, sql), depends_on, params |
| Pipeline Run | Document | One execution of a Pipeline (PIPE-#####): params (fiscal_year, fiscal_period, scope, full_refresh, skip_sync), status (Queued / Extracting / Transforming / Running / Completed / Failed / Cancelled), log, error details; started with the Run Pipeline button, enqueued as a background job |
| Run Step | child of Pipeline Run | Per-run step: type, status, rows, timing, retries, depends_on, params, output, error |
| Pipeline Schedule | Document | Cron trigger for a Pipeline (cron, params, enabled, last_run, next_run); evaluated every minute by konsol.orchestrator.cron.run_due_schedules |
| Build Approval | Document | Approval gate for governed dbt builds (BAPR-#####): Draft → Pending Review → Approved; low-risk scopes auto-approve, high-risk scopes need EPM Admin; stuck rows are released by the reaper |
| Build Scope | Document | The Build Governance domains (single source of truth); each maps to a dbt selector tag:domain:<scope> and a flag for whether it needs epm_raw data |
| Build Model | Document | Maps each gold dbt model to a Build Scope; on save writes the +tags: ['gold', 'domain:<scope>'] block into dbt_project.yml |
| EPM Settings | Single | Global configuration: ClickHouse connection, Airbyte connection and sync status, D365 F&O budget write-back (legacy), dbt configuration, access control, Close, Trial Balance Periods |
Module: EPM (25)
The registry that shapes the warehouse, the group chart and calendar, and budgeting.
| Doctype | Kind | Purpose |
|---|---|---|
| Dimension | Document | An EPM dimension; a save that changes what the warehouse sees runs apply_and_rebuild (DDL, dbt vars, budget fields, governed rebuild through Build Approval). Lifecycle: Draft / Published / Inactive |
| Dimension Mapping | Document | Crosswalk from a raw ERP dimension value to a canonical one, keyed on (dimension, erp_source, entity, source value); Publish regenerates epm_staging.dimension_mappings, read by the dim_harmonize_* macros |
| Measure | Document | An EPM measure (expression, cube_type aggregation); a publish-affecting save regenerates base_measures in dbt vars and requests a governed rebuild |
| Dataset | Document | Registry of queryable ClickHouse datasets for the dynamic schema (autoname: field:fact_name): allowed measures and dimensions, default_measure, source_type, dbt_model, has_layer; Publish applies DDL and the dbt source |
| Dataset Measure | child of Dataset | Allowed measure for a dataset |
| Dataset Dimension | child of Dataset | Dimension for a dataset |
| Entity | Document, tree | The legal entities and roll-up nodes the group consolidates: code, name, functional currency, country, source ERP, reporting_frequency, active flag; the Frappe User Permission target for entity scoping |
| Entity Fiscal Calendar | Document | Which fiscal calendar an ERP legal entity posts against (erp_data_area → calendar); formerly the entity_fiscal_calendars seed (konsolidat#146) |
| EPM Fiscal Year | Document | The declared fiscal calendar for one year: period pattern, Generate Periods, closing, closed; period open / closed / locked state lives on its period rows |
| EPM Fiscal Year Period | child of EPM Fiscal Year | One declared period (P07, OPN, CLS): dates, type, close state, data_changed_at/by |
| Fiscal Period | Document | Older fiscal-period config (FP-{n}) that writes dbt_project.yml vars; the EPM Fiscal Year is the declared calendar |
| ISO Currency | Document | The ISO 4217 list the warehouse validates FX codes against (currency_code, minor_unit); formerly seeds/currencies.csv |
| Main Account | Document, tree | The governed group chart of accounts (konsol#182): account_type, statement_section, normal_balance, time_balance, fx_method (closing / average / historical), is_posting, allow_ic, cash-flow category and line, is_retained_earnings; Draft / Published / Inactive; written to epm_staging.main_accounts |
| Main Account Category | Virtual | Read-only proxy of the distinct main_account_category values in epm_silver.silver_main_accounts; a User Permission target for budget writes |
| Budget Cost Center | Virtual | Read-only proxy of the distinct cost-center values in epm_silver.silver_financial_dimensions; a User Permission target for budget writes |
| Scenario | Document | Budget, forecast and other scenarios (scenario_id, scenario_type); the type decides which scenario is actual or budget in the variance models |
| Budget Cycle | Document, submittable | The single lock gate for a scenario × fiscal year; submit locks every sheet and fires the ClickHouse sync and D365 write-back |
| Budget Sheet | Document | One entity × layer of wide budget lines under a Budget Cycle (BSHT-<cycle>-<entity>-<layer>-<sha8>); D365 write-back status |
| Budget Line | child of Budget Sheet | One wide row per (main account, in-budget dimensions) with period_01..period_12 |
| Budget Annual Input | Document | A top-down annual figure spread into months by profile; formerly the budget_annual_input seed (konsolidat#146) |
| Spread Profile | Document | Weights for top-down budget entry, one row per period (SP-{profile}-P{period}) |
| Cash Flow Category | Document | Maps a balance-sheet account to a cash-flow line (CFC-{account}); Publish re-syncs epm_staging.cash_flow_categories |
| Reporting Hierarchy | Document | Management reporting trees on canonical dimensions; Publish re-syncs epm_staging.reporting_hierarchies. Legal-entity consolidation uses Consolidation Group instead |
| Reporting Hierarchy Member | Document | A node of a reporting tree as a dated tranche (effective_from / effective_to, konsol#220) |
| Period Status | Document, retired | Kept read-only as history (konsol#189); open / closed / locked state moved to EPM Fiscal Year Period |
Module: Consolidation (27)
Structure, ownership, rates, deals, intercompany, journals, the trial-balance intake and the close.
| Doctype | Kind | Purpose |
|---|---|---|
| Consolidation Group | Document, tree | The consolidation structure (CG-{group}-{entity}), not ownership. The group root row carries reporting_currency (Link to ISO Currency), the IC difference account and tolerance, and the Consolidation Policy: accounting_framework, goodwill_treatment (+ years), acquisition_costs_treatment, measurement_period, bargain_purchase, nci_measurement, and the nine declared deal accounts. Written to epm_gold.consolidation_groups |
| Ownership Period | Document, submittable | The one place ownership lives: dated ownership_pct and consolidation_method per group and entity (OP-{group}-{entity}-{date}); the acquisition and disposal fields it still carries are read by no model except acquisition_date |
| Historical Equity Rate | Document, submittable | IAS 21 historical FX rate for an equity account tranche; written to epm_staging.historical_equity_rates |
| Group Exchange Rate | Document, submittable | The governed translation rates (konsol#103): one Closing and one Average rate per fiscal period from each currency into a group reporting currency; pre-fill from the ERP, submit is the approval; translation reads only these |
| Business Combination | Document, submittable | One acquisition of control (BC-{group}-{entity}-{date}, konsolidat#198): consideration, acquired balance sheet, costs, NCI measurement; synced to epm_staging.business_combinations and its three child tables on submit |
| Business Combination Consideration | child | One component of the consideration transferred |
| Business Combination Acquired Balance | child | One line of the acquired balance sheet with its fair-value step-up |
| Business Combination Cost | child | One acquisition-related cost |
| Business Disposal | Document, submittable | One loss of control (BD-{group}-{entity}-{date}): proceeds, date, share disposed, retained interest; synced to epm_staging.business_disposals |
| Business Disposal Proceeds | child | One component of the proceeds received |
| Fair Value Allocation Profile | Document | Reusable weights that spread a deal's fair-value adjustment over accounts when Get Balances from Trial Balance builds the acquired balance sheet (konsol#208); not written to the warehouse |
| Fair Value Allocation Profile Line | child | One account and its weight |
| Intercompany Account | Document | The intercompany flag on the group chart (ICA-{account}, konsol#159); drives upload validation, reports and elimination |
| IC Elimination Rule | Document | Intercompany elimination rules: rule_type (balance / unrealized profit), margin, asset account, entity patterns; balance-type rules eliminate nothing on their own (pairs come from flagged accounts and the partner on each row) |
| IC Balance | Document, submittable | Intercompany sales and inventory balances between entity pairs (ICB-{seller}-{buyer}-{year}-P{period}), used by unrealized-profit elimination |
| Consolidation Journal | Document, submittable | A balanced topside or reclassification journal whose lines each name their entity (CJ-#####, konsol#292): Draft → Pending Approval → Approved → Reversed; the one writer of epm_staging.consolidation_adjustments |
| Consolidation Journal Line | child | One entity, account and debit/credit pair |
| Trial Balance Submission | Document, submittable | CSV trial-balance intake for one entity and period (TBS-{entity}-{year}-P{period}-{n}): synchronous validation, rows land in ClickHouse under a batch id on submit |
| Trial Balance Upload | Document | One bulk file for many entities and periods (TBU-{n}): Check file, then Load / Resume load; each ready entity-period becomes a Trial Balance Submission |
| TB Exception | Document, submittable | "No trial balance for this entity in this period, because …" (TBX-#####, konsol#303), declared by the Close Lead; the sign-off completeness gate accepts it in place of a trial balance |
| Assertion Run | Document | Runs the dbt close-assertion suite for a fiscal period (ASRT-{year}-P{period}-{n}) and records sign-off, results, scope, timing and a streamed log; a finished run cannot be deleted; stuck runs are released by reap_stale_close_runs every 10 minutes |
| Assertion Step | child of Assertion Run | One assertion outcome |
| Close Settings | Single | Close policy the Close Lead owns (konsol#305): first close period, close order, approvals, rates, intercompany, statements, commentary, deadlines, holidays |
| Close Deadline Rule | child of Close Settings | One effective-dated deadline rule (working week, working days after period end) |
| Close Holiday | child of Close Settings | One group-wide holiday |
| Close Event | Document | The append-only close audit trail (CE-#########): one row per action on a period (approve, reject, close, lock, reopen, sign-off, trial balance); written only by konsol.close.close_event, never changed, never deleted |
| Statement Commentary | Document | One versioned note per (group, year, period, statement heading), shown on the consolidated statement; every change writes a Close Event |
Where each kind of data goes
| Doctype group | Target | Read by |
|---|---|---|
| Dimension, Measure, Dataset, Fiscal Period, Build Model | the konsol-managed block of dbt_project.yml, ClickHouse DDL, dbt sources | dbt compile |
| Dimension Mapping, Cash Flow Category, Reporting Hierarchy, Main Account, Intercompany Account, Entity, Scenario, Consolidation Group, Ownership Period, Historical Equity Rate, Group Exchange Rate, Business Combination, Business Disposal, Consolidation Journal, IC Elimination Rule, IC Balance | epm_staging.* and epm_gold.* reference tables (see Reference Data) | dbt source() |
| Budget Cycle / Sheet / Line, Budget Annual Input, Spread Profile | epm_gold.budget_monthly_input, epm_gold.budget_annual_input, epm_gold.spread_profiles | gold_spread_budget, scenario models |
| Trial Balance Submission | epm_raw submission tables under a batch id | bronze_trial_balance_submissions |
| Assertion Run, Close Event, Close Settings, Statement Commentary, TB Exception | Frappe only | the /close app and Desk reports |
Counts: Pipeline 13 · EPM 25 · Consolidation 27 = 65. Generated by reading every *.json under konsol/*/doctype/ and the controller docstrings at konsol 3e220ba8 (2026-11-05). The 2 July 2026 version of this page listed 38 doctypes at b10702a; 746 commits separate the two.