Period Close Guide
This page walks one fiscal period through the close in konsol: from the first trial balance to a closed period with an audit trail. Each step names the screen you use and the server method behind it, so the same step can be driven from the Desk, from the close app or by script.
Verified against konsol 3e220ba8 (5 Nov 2026): konsol/close/*_api.py, close-ui/src, and the close doctypes under konsol/consolidation/doctype.
Where the close lives
The close app is at /close. The period is in the URL: /close/<fiscal_year>/<fiscal_period>/<screen>. Nothing is remembered in the browser; with no period in the URL the server picks the landing period (period_api.get_context): the oldest ended Regular period that is still Open, or the period containing today. A Viewer lands on the latest signed-off period.
Every API method below is konsol.close.<module>.<method>, called as /api/method/konsol.close.<module>.<method>. Reads are GET; writes are POST. Configuration (the chart, the calendar, Close Settings, Consolidation Groups) stays in the Desk; operations happen in the close app.
Roles and screens
| Persona | Frappe role | Screens, in order |
|---|---|---|
| Close Lead | EPM Admin | My work, Approvals, Period, Trial balances, Intercompany, Rates & ownership, Adjustments, Checks, Numbers, Sign-off, Audit trail |
| Group Accountant / Analyst | EPM Analyst | the same list |
| Entity Accountant | Entity Accountant | My work, Trial balances |
| Viewer | EPM User | every screen except My work, read-only |
An Entity Accountant sees only the entities a User Permission on Entity gives them. Who may do what at each step is stated with the step.
Step 0: what must be declared first
The close refuses to start on an undeclared site. My work (mywork_api.get_my_work) lists each gap once, as a blocking item that opens the Desk page that fixes it:
| Gap | Where to fix |
|---|---|
| First close period undeclared | Close Settings → first_close_fiscal_year / first_close_fiscal_period. Until set, no Regular period can be signed off, closed or locked |
self_approval undeclared (Blocked / Allowed with reason) | Close Settings. Until set, every self-approval is refused |
rate_move_threshold undeclared | Close Settings. Until set, every rate that moves against its previous rate or ERP quote needs a Reason for Change |
| Commentary threshold undeclared | Close Settings → commentary_threshold_amount / _percent / _combine |
| CTA and result accounts for the statement | Close Settings → statement_cta_account, statement_result_account (Published balance-sheet leaves) |
| Group chart not published | Main Account: upload and publish the chart |
Entity has no reporting_frequency (Monthly / Quarterly) or no functional_currency | Entity |
| Entity has no Ownership Period covering the period's first day | Ownership Period, or the Rates & ownership screen (below) |
Group node has no reporting_currency or no ic_difference_tolerance | Consolidation Group root row |
| An Entity Accountant with no entity | User Permission on Entity |
Intercompany: no Published Intercompany Account, or Close Settings intercompany_declaration not set | Intercompany Account; Close Settings |
An IC Balance pair no unrealized_profit IC Elimination Rule matches, or that two rules match | IC Elimination Rule |
| Deadlines (optional) | Close Settings → Deadlines: Close Deadline Rule rows (a declared working week, working-day offsets for TB, IC, journals and sign-off, valid_from, a reason) and Close Holiday rows. Undeclared reads "No due date declared"; overdue is shown, never blocks |
The fiscal calendar itself is an EPM Fiscal Year with period rows (period_type Opening / Regular / Closing / Adjustment, quarter, start_date, end_date, status Open / Closed / Locked). Only Regular periods are closed through the app.
Step 1: Period: see where the period stands
Screen Period (/close/<y>/<p>/period). Two reads:
grid_api.get_readiness(fiscal_year, fiscal_period): the readiness strip, nine items in a fixed order: period open, first close, previous signed, policies, configuration, ownership, trial balances, rates, checks. Each is ok, blocked or unknown. It reads the same gate the Sign-off screen uses (signoff_gate.sign_off_problems), so the strip and the gate cannot disagree.grid_api.get_period_grid(fiscal_year, fiscal_period): one row per in-scope entity with its Ownership, Trial balance and Closing rate cells, a problems filter, and the due or overdue state of the TB, IC, journals and sign-off steps.
An entity is in scope when it is an Active leaf Entity with a submitted Ownership Period covering the period's first day. An entity that submitted a trial balance but has no covering ownership shows "Not consolidated: no ownership for this period" and blocks sign-off (konsol#289).
The header's freshness line (freshness_api.get_freshness) says whether the consolidated numbers are current: fresh, stale (an input changed after the last build), pending (a build is running), failed, or never built. Approving any of the seven approval doctypes requests a consolidation build; a trial-balance or calendar change requests a full build.
Step 2: Trial balances: submit each entity's trial balance
Who: the Entity Accountant for their own entities, or the Close Lead (EPM Admin) on their behalf.
Screen Trial balances (/close/<y>/<p>/trial-balances). tb_read_api.my_tbs(fiscal_year, fiscal_period) lists the entities you may see with a status each: Received, Exception declared, Not expected (a Quarterly entity outside a quarter-end), Missing, Frequency not declared, Quarter not declared, or Not consolidated. It also carries the TB deadline and any reminders.
Upload one entity-period:
- Choose a CSV. The contract (header required, case-insensitive):
main_account,debit,credit,currency[,description][,partner_data_area_id][,amount_basis], one row per account, partner and declared dimension value. Amounts are written exactly, never rounded.partner_data_area_idis the intercompany partner; a partner on an account the chart does not flagallow_icis a warning. - Pick the amount basis: Period movement, Year-to-date movement or Period-end balance.
- The app checks the file with
tb_api.check_tb(entity, fiscal_year, fiscal_period, amount_basis, content). It writes nothing and reports every bad line by number (unknown account, heading account, closed account, negative amount, duplicate row, self partner, unknown partner), the totals, whether the period is Open, and which submitted TB a submit would replace. There is no row editing: the only way out of a problem list is a new file. - Submit with
tb_api.submit_tb(entity, fiscal_year, fiscal_period, amount_basis, content, replaces). The server re-checks with the same rules, cancels the TB it replaces, stores the file privately and creates and submits a Trial Balance Submission. The rows land in ClickHouse under a batch id; the submit writes atb_submittedClose Event.
Compare with the previous period by account: tb_read_api.tb_compare(entity, fiscal_year, fiscal_period).
Remind an entity's people: remind_api.remind(fiscal_year, fiscal_period, entity, topic) with topic tb. Recipients are the users with a User Permission directly on the entity; a reminder_sent Close Event is written. Refused with a sentence when nobody is named.
Bulk upload in the Desk. The Trial Balance Upload form takes one file for many entity-periods. Its columns add data_area_id, fiscal_year and fiscal_period (and may carry amount_basis per row). The form has three buttons (konsol#370): Check file (tb_bulk.check_upload: reports every entity-period, ready or not, loads nothing), Load (re-checks, then queues the load; one Trial Balance Submission per ready entity-period, each committed on its own), and Resume load (carries forward rows already loaded, never loads one twice). Only the Close Lead or a System Manager may load.
No trial balance for an entity this period. The Close Lead declares a TB Exception with a reason: signoff_api.declare_tb_exception(entity, fiscal_year, fiscal_period, reason). The sign-off completeness gate accepts a submitted exception in place of a trial balance. It is refused for a blank reason, a group entity, a closed period, an entity that already submitted, or a second exception for the same entity-period.
Step 3: Rates & ownership: approve the period's rates
Who: the Analyst (EPM Analyst) drafts; the Close Lead approves.
Screen Rates & ownership (/close/<y>/<p>/rates). rates_api.get_rates(fiscal_year, fiscal_period) shows one row per currency pair the period translates, with a Closing and an Average cell, and lists rates the period does not need apart.
- Draft or edit a rate:
rates_api.save_rate(fiscal_year, fiscal_period, from_currency, to_currency, rate_type, quote, quoted_per, change_reason, name, supersedes). The quote is per 1, 10, 100, 1,000 or 10,000 units; konsol publishes the true rate. A rate more than 10x from the currencies' reference magnitudes is refused. A rate that moves more thanrate_move_thresholdfrom the last approved rate or the ERP quote needs achange_reason. - Correct an approved rate: a draft naming the approved rate in
supersedes. Approval cancels the replaced rate in the same transaction; a correction cannot be cancelled, only corrected again (konsol#312).rates_api.delete_rate(name)removes a draft correction. - Pending Historical Equity Rate and Ownership Period drafts:
rates_api.get_pending. - Ownership:
rates_api.get_ownership(fiscal_year, fiscal_period)shows each entity's share and gaps. "Change ownership" previews (rates_api.preview_ownership_change) and saves (rates_api.save_ownership_change(fiscal_year, fiscal_period, consolidation_group, entity, ownership_pct, consolidation_method, name)) a draft Ownership Period that starts on the period's first day and supersedes the current one. Approval ends the predecessor the day before; a signed later period is marked for re-signing.
A period cannot close while a currency its ledgers translate lacks an approved Closing or Average rate into the group currency (group_rates.rate_gate). Rates lock when their period closes.
Step 4: Intercompany: reconcile pairs
Screen Intercompany (/close/<y>/<p>/intercompany). ic_api.get_ic(fiscal_year, fiscal_period) reads gold_ic_reconciliation: the state (not configured, not applicable, or reconciled), each pair with its two sides, the difference, its cause and whether it is over the group's tolerance, and the unmatched rows (no partner). A scoped user sees their own side, the difference and the partner's code; the partner's amounts are blank.
- Send an over-tolerance pair back to both entities:
ic_api.send_back(fiscal_year, fiscal_period, entity_a, account_a, entity_b, account_b, reason)writes anic_sent_backClose Event and gives the Entity Accountants a fix item in My work. - Remind about intercompany:
remind_api.remind(..., topic="ic"), offered only where the entity has a pair over tolerance. - IC Balances for unrealised profit:
ic_balance_api.get_ic_balances(fiscal_year, fiscal_period)andic_balance_api.save_ic_balance(fiscal_year, fiscal_period, selling_entity, buying_entity, ic_sales_amount, ending_inventory_from_ic, name)draft an IC Balance; the Close Lead approves it. A balance whose pair no rule matches, or that two rules match, or that is still a draft with a matching rule, blocks sign-off.
Over tolerance turns a Green close Amber, and signing it needs an acknowledgement. If the IC model is unbuilt or unreadable, sign-off is blocked.
Step 5: Adjustments: top-side journals
Who: the Analyst drafts and sends for approval; the Close Lead approves.
Screen Adjustments (/close/<y>/<p>/adjustments). journal_api.get_journals(fiscal_year, fiscal_period) lists the period's Consolidation Journal records with each one's effect per statement heading, before and after.
- Draft:
journal_api.save_journal(fiscal_year, fiscal_period, consolidation_group, adjustment_type, description, lines, reverse_fiscal_year, reverse_fiscal_period, name).adjustment_typeistopsideorreclassification; each line names an entity, an account and a debit or a credit; the journal must balance to the cent. Name a reversal period to have the entry reversed there automatically ("reverses in P"), or leave it blank ("this period only"). - Send for approval:
journal_api.send_for_approval(name)(Draft → Pending Approval). - Approve: see step 6. Only Approved journals reach the consolidated numbers. The reversal posts in exactly the named period (
auto_reversalrows ingold_consolidation_adjustments) and is visible there in Adjustments.
See Top-Side Journals for the model.
Step 6: Approvals
Who: the Close Lead (EPM Admin) or a System Manager.
Seven doctypes are approved by submit: Consolidation Journal, Business Combination, Business Disposal, Group Exchange Rate, Ownership Period, Historical Equity Rate and IC Balance.
- In the close app: screen Approvals (
/close/<y>/<p>/approvals).approvals_api.get_queueis one queue across the seven, oldest first, each item with its detail (a rate's old → new, an ownership change's structural effect, a journal's effect per heading) and the caller's approve mode. - In the Desk (konsol#370, 5 Nov 2026): open the sidebar's Approvals section, open the record, and pick Actions → Approve or Actions → Reject. The form asks
approval_api.approve_mode(doctype, name)whether a self-approval reason is needed. Business Combination and Business Disposal are approved here. - The methods:
approval_api.approve(doctype, name, reason)andapproval_api.reject(doctype, name, reason). A reject needs a reason; the document goes back to Draft (or stays a draft with the reason as a Comment and arejectedClose Event where the doctype has no workflow) and its preparer gets a "Sent back" item in My work. A sent-back draft is refused on every submit path until it is changed (konsol#371).
Self-approval follows Close Settings self_approval: Blocked, or Allowed with a reason. A preparer is the owner plus everyone who edited the draft. There is no Administrator exemption. Every approval writes an approved or self_approved Close Event in the same transaction, and requests a consolidation build.
Step 7: Checks: run the close assertions
Who: the Analyst or the Close Lead may run; a Viewer reads.
Screen Checks (/close/<y>/<p>/checks). checks_api.run_checks(fiscal_year, fiscal_period) creates an Assertion Run and runs the dbt close-assertion suite for the period. checks_api.get_checks(fiscal_year, fiscal_period) shows the latest run (Queued, Running, Green, Amber, Red or Error), whether it is stale against the latest data change, and every failure and warning by domain (Ownership, FX, Consolidation, Data Quality, Other) with the description the dbt project declares. A missing description is shown as "No description declared", never invented.
Checks cannot be run on a Closed or Locked period, nor while another run is Queued or Running. A run that started before the period's last data change (a TB submit or cancel, a TB Exception, an approval) does not count for sign-off.
Step 8: Numbers: read the statements and write commentary
Screen Numbers (/close/<y>/<p>/numbers). statement_api.get_statement(fiscal_year, fiscal_period, consolidation_group) gives the consolidated P&L and balance sheet for one group, from gold_fully_consolidated_tb. Each heading's side comes from Main Account normal_balance; CTA and the current-year result appear as "of which" lines under their declared accounts; an "Unmatched residual" line appears if the balance sheet does not balance; a chip lists in-scope entities missing from the warehouse.
- Drill:
statement_api.get_drill(fiscal_year, fiscal_period, consolidation_group, heading)breaks a heading into entity, IC elimination, CTA, top-side and deal rows, then accounts, then the source TB or journals. - Export:
statement_api.export_statement(...)downloads the statement, every drill and the journals as.xlsx, with every text cell stored as text. - Commentary:
commentary_api.save_commentary(fiscal_year, fiscal_period, consolidation_group, heading, text, modified)keeps a Statement Commentary per heading and period (versioned, never deleted, writes acommentary_savedClose Event). A heading over the declared commentary threshold with no commentary makes the close Amber and needs an acknowledgement at sign-off. Commentary is refused once the period is Closed.
Step 9: Sign-off: sign, close, reopen
Who: the Close Lead (EPM Admin) or a System Manager signs, closes and reopens. A Viewer reads.
Screen Sign-off (/close/<y>/<p>/sign-off). signoff_api.get_signoff(fiscal_year, fiscal_period) is the summary: the gates, the latest run's result, the intercompany line, the commentary line, trial balances uploaded on behalf, TB Exceptions and what they cover, the previous periods, who closed the period and when, and the last data change.
The gates, all of which must pass before anything is signed:
| Gate | Rule |
|---|---|
| Configuration | first close period declared; every in-scope entity has a reporting frequency; no submitted TB from an entity without ownership; policies declared |
| Order | every Regular period from the first close period up to P(n−1) is signed; "Sign off P8 first" names the oldest blocker |
| Completeness | every expected entity (Monthly always; Quarterly at a quarter-end) has a submitted Trial Balance Submission or a submitted TB Exception |
| Data change | the run started after the period's last data change |
Then the run's result decides the action:
- Green:
signoff_api.sign(fiscal_year, fiscal_period, run).runis the run the summary showed; a run that is no longer the latest is refused and nothing is signed. - Amber (warnings, an intercompany pair over tolerance, a heading over the commentary threshold):
sign(..., acknowledgement=...). The signature records the warnings it acknowledged (warnings_at_signoffon the Assertion Run) and the dialog lists them (konsol#371). - Red or Error: blocked, unless an EPM Admin or System Manager gives an
override_reason:sign(..., override_reason=...).
The signature is written on the Assertion Run (signoff_status Signed Off, Acknowledged or Overridden, with who and when) and a signed_off Close Event. A signature covers only the data its run checked: a later approval, cancel, reversal, TB submit or TB Exception on the period voids it (signoff_voided, status Re-sign Needed) and every later signed period with it. Only a build that changes the period's fingerprinted numbers voids a signature (konsol#338).
- Send back:
signoff_api.reject(fiscal_year, fiscal_period, run, reason)clears the signature, writessignoff_rejected, and gives the preparer a "Sent back" item. - Close the period:
signoff_api.close_period(fiscal_year, fiscal_period, note)closes the period row of its EPM Fiscal Year. It needs a signed run and complete group rates for the period. Rates lock; checks, journals and commentary are refused on the period. The year itself is closed or locked in the Desk on EPM Fiscal Year (close_year,lock_year), all or nothing on rates and sign-off. - Reopen:
signoff_api.reopen_period(fiscal_year, fiscal_period, reason)reopens the period for a stated reason and marks the latest signed run of this and every later Regular period Re-sign Needed, withaffected_bynaming the reopen. Each writes aperiod_closedorperiod_reopenedClose Event.
Step 10: Audit trail
Screen Audit trail (/close/<y>/<p>/audit-trail). trail_api.get_trail(fiscal_year, fiscal_period, kinds, actors, entities, date_from, date_to) lists the period's Close Event records newest first, with a summary (signed off by and when, the result, closed, locked, exception counts), filtered by kind, actor, entity and date. trail_api.export_trail_csv(...) downloads the same rows as audit-trail-FY<year>-P<period>.csv.
Every approve, self-approve, reject, cancel, period or year close, lock and reopen, sign-off, sign-off void or reject, TB submit, cancel or exception, IC send-back, commentary save and reminder writes one append-only Close Event in the action's own transaction. Nobody can change or delete one through the app, Administrator included. Reads are scoped by entity for restricted users. An Entity Accountant does not see this screen.
Deadlines and reminders, in one place
Deadlines are declared in Close Settings (Close Deadline Rule, Close Holiday) and shown as due or overdue on the Trial balances list, the Period grid strip (TB, IC, journals, sign-off) and My work. They never block. Reminders (remind_api.remind) go to the users permitted directly on the entity and are recorded as reminder_sent events; the count and the last reminder show on the TB row, the grid, My work and the Intercompany panel.
What the warehouse does with all this
Every submit above writes through to epm_staging tables that the dbt models read: trial balances to epm_raw.trial_balance_submissions (claimed by a control row), rates to group_exchange_rates, ownership to ownership_periods, journals to consolidation_adjustments, deals to business_combinations / business_disposals. A consolidation build then rebuilds gold_consolidated_trial_balance for the period and everything downstream to gold_fully_consolidated_tb. The checks are the dbt singular tests; the Numbers screen and gold_consolidation_journal read the result. See the Consolidation Guide for the models.