Skip to main content

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.

Names

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.

DoctypeKindPurpose
ConnectorDocumentRegistry 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 Entitychild of ConnectorLegal entity_ids the connector serves
Connector Dimension Mapchild of ConnectorPer-ERP dimension → column mappings
Connector HealthDocumentDerived per-connector sync-health snapshot (Never / Running / Succeeded / Failed / Stale), refreshed every 5 minutes by refresh_connector_health; never edited by hand
PipelineDocumentDAG template: ordered steps with dependencies and default params
Pipeline Stepchild of PipelineOne 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 RunDocumentOne 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 Stepchild of Pipeline RunPer-run step: type, status, rows, timing, retries, depends_on, params, output, error
Pipeline ScheduleDocumentCron trigger for a Pipeline (cron, params, enabled, last_run, next_run); evaluated every minute by konsol.orchestrator.cron.run_due_schedules
Build ApprovalDocumentApproval 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 ScopeDocumentThe 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 ModelDocumentMaps each gold dbt model to a Build Scope; on save writes the +tags: ['gold', 'domain:<scope>'] block into dbt_project.yml
EPM SettingsSingleGlobal 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.

DoctypeKindPurpose
DimensionDocumentAn 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 MappingDocumentCrosswalk 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
MeasureDocumentAn EPM measure (expression, cube_type aggregation); a publish-affecting save regenerates base_measures in dbt vars and requests a governed rebuild
DatasetDocumentRegistry 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 Measurechild of DatasetAllowed measure for a dataset
Dataset Dimensionchild of DatasetDimension for a dataset
EntityDocument, treeThe 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 CalendarDocumentWhich fiscal calendar an ERP legal entity posts against (erp_data_area → calendar); formerly the entity_fiscal_calendars seed (konsolidat#146)
EPM Fiscal YearDocumentThe 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 Periodchild of EPM Fiscal YearOne declared period (P07, OPN, CLS): dates, type, close state, data_changed_at/by
Fiscal PeriodDocumentOlder fiscal-period config (FP-{n}) that writes dbt_project.yml vars; the EPM Fiscal Year is the declared calendar
ISO CurrencyDocumentThe ISO 4217 list the warehouse validates FX codes against (currency_code, minor_unit); formerly seeds/currencies.csv
Main AccountDocument, treeThe 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 CategoryVirtualRead-only proxy of the distinct main_account_category values in epm_silver.silver_main_accounts; a User Permission target for budget writes
Budget Cost CenterVirtualRead-only proxy of the distinct cost-center values in epm_silver.silver_financial_dimensions; a User Permission target for budget writes
ScenarioDocumentBudget, forecast and other scenarios (scenario_id, scenario_type); the type decides which scenario is actual or budget in the variance models
Budget CycleDocument, submittableThe single lock gate for a scenario × fiscal year; submit locks every sheet and fires the ClickHouse sync and D365 write-back
Budget SheetDocumentOne entity × layer of wide budget lines under a Budget Cycle (BSHT-<cycle>-<entity>-<layer>-<sha8>); D365 write-back status
Budget Linechild of Budget SheetOne wide row per (main account, in-budget dimensions) with period_01..period_12
Budget Annual InputDocumentA top-down annual figure spread into months by profile; formerly the budget_annual_input seed (konsolidat#146)
Spread ProfileDocumentWeights for top-down budget entry, one row per period (SP-{profile}-P{period})
Cash Flow CategoryDocumentMaps a balance-sheet account to a cash-flow line (CFC-{account}); Publish re-syncs epm_staging.cash_flow_categories
Reporting HierarchyDocumentManagement reporting trees on canonical dimensions; Publish re-syncs epm_staging.reporting_hierarchies. Legal-entity consolidation uses Consolidation Group instead
Reporting Hierarchy MemberDocumentA node of a reporting tree as a dated tranche (effective_from / effective_to, konsol#220)
Period StatusDocument, retiredKept 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.

DoctypeKindPurpose
Consolidation GroupDocument, treeThe 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 PeriodDocument, submittableThe 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 RateDocument, submittableIAS 21 historical FX rate for an equity account tranche; written to epm_staging.historical_equity_rates
Group Exchange RateDocument, submittableThe 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 CombinationDocument, submittableOne 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 ConsiderationchildOne component of the consideration transferred
Business Combination Acquired BalancechildOne line of the acquired balance sheet with its fair-value step-up
Business Combination CostchildOne acquisition-related cost
Business DisposalDocument, submittableOne loss of control (BD-{group}-{entity}-{date}): proceeds, date, share disposed, retained interest; synced to epm_staging.business_disposals
Business Disposal ProceedschildOne component of the proceeds received
Fair Value Allocation ProfileDocumentReusable 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 LinechildOne account and its weight
Intercompany AccountDocumentThe intercompany flag on the group chart (ICA-{account}, konsol#159); drives upload validation, reports and elimination
IC Elimination RuleDocumentIntercompany 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 BalanceDocument, submittableIntercompany sales and inventory balances between entity pairs (ICB-{seller}-{buyer}-{year}-P{period}), used by unrealized-profit elimination
Consolidation JournalDocument, submittableA 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 LinechildOne entity, account and debit/credit pair
Trial Balance SubmissionDocument, submittableCSV 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 UploadDocumentOne 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 ExceptionDocument, 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 RunDocumentRuns 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 Stepchild of Assertion RunOne assertion outcome
Close SettingsSingleClose policy the Close Lead owns (konsol#305): first close period, close order, approvals, rates, intercompany, statements, commentary, deadlines, holidays
Close Deadline Rulechild of Close SettingsOne effective-dated deadline rule (working week, working days after period end)
Close Holidaychild of Close SettingsOne group-wide holiday
Close EventDocumentThe 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 CommentaryDocumentOne 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 groupTargetRead by
Dimension, Measure, Dataset, Fiscal Period, Build Modelthe konsol-managed block of dbt_project.yml, ClickHouse DDL, dbt sourcesdbt 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 Balanceepm_staging.* and epm_gold.* reference tables (see Reference Data)dbt source()
Budget Cycle / Sheet / Line, Budget Annual Input, Spread Profileepm_gold.budget_monthly_input, epm_gold.budget_annual_input, epm_gold.spread_profilesgold_spread_budget, scenario models
Trial Balance Submissionepm_raw submission tables under a batch idbronze_trial_balance_submissions
Assertion Run, Close Event, Close Settings, Statement Commentary, TB ExceptionFrappe onlythe /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.