DODIL BLOG
DocsLog inSign up

Modules / Accounting

Accounting

The books: every transaction as a balanced entry, account balances you can trust, month-end close, and the reports your accountant asks for, fed by the rest of the business rather than re-keyed from it.

People ask for it as: “our books”, “the accounts”, “month-end”, “year-end”, “profit and loss”, “trial balance”, “what does the accountant need”, “the auditor asked for”, “we have two companies”, “IFRS and local GAAP”, “intercompany recharges”, “allocate overheads to departments”, “accruals and prepayments”, “segment reporting”, “the month-end checklist”, “the tax auditor wants the FEC”

Who uses it

RoleDoesSees
Bookkeeperproposes manual journals, reconciles the receivable control account, reads what the other modules postedevery account and journal
Accountant / finance managersets up companies, ledgers, the charts and the account map, approves manual journals, recurring entries, accruals and allocation cycles, reverses mistakes, enters rates, revalues, matches intercompany, runs the closing cockpit, closes periods and years, signs off a close, runs the reportsthe companies the owner gives them access to (all by default)
Controller (management accountant)keeps the allocation cycles and the statistical key figures, simulates and posts allocations, keeps the budget, reads plan against actual by cost and profit centrethe companies the owner gives them access to (all by default)
Auditorreads the books and the trail behind any number, verifies the hash chain, exports the FEC or SAF-T fileeverything, changes nothing
The owner (or whoever the owner names)holds the controls on the people who keep the books (time zone, second approver for manual journals, recurring entries, accruals, allocation cycles and reopening, journal numbering, document splitting, who may see which company, the AI step modes) and signs the migration reconciliationeverything
The systemposts what other modules send (fixed-assets included), splits and re-derives balances, derives the carry-forward, posts pending reversals when a period opens, re-splits open items by profit centre at period end, checks the closing cockpit's system tasks, materialises statements, serves consolidation its group data, checks a manual journal before approval, numbers journals, loads and reconciles a migrationeverything, through its own service account

What it has to do

Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.

Things people do

  • GL-01As the accountant, I want a chart of accounts that matches how we report, so that every entry lands somewhere meaningful.

    Given a new set of books · when I add accounts with their code, type and parent · then each account has a stable account_id, the customer's own code, a type (asset, liability, equity, income, expense) and a place in the tree; an account already used by a journal cannot change type or code, only its name or be deactivated (dated, after today)

    Accountant / finance manager · screen: Accounts · reference: implemented (v1, without code or the used-account rule)

    Usually different per customer: the chart itself; every country, accountant and trade has its own; the shape is ours, the contents are theirs

  • GL-02As the bookkeeper, I want to propose a manual journal (an accrual, a correction, a payroll summary), so that the books record what no other module posts.

    Given lines totalling 1,000.00 debit and 1,000.00 credit, dated in an open period and not after today · when I submit it · then it is proposed; an unbalanced journal is refused with the difference named; where the owner asks for a second approver it waits for one, otherwise it posts at once with its journal number

    Bookkeeper · screen: Journal · reference: partial: v1 posts at once with no approval and no number

  • GL-03As the accountant, I want to correct a mistake with a reversing entry rather than an edit, so that the trail survives an audit.

    Given a posted journal · when I reverse it, with a reason, dated today or the first day of the next open period (an accrual reversing itself) · then a mirror journal keyed derived_id(journal_id, "reversal") is posted referencing the original, both stay readable, the balances return to where they were, and reversing twice (or twice at once) posts one reversal

    Accountant / finance manager · screen: Journal · reference: implemented (v1, without the reason or the reversal date)

  • GL-04As the auditor, I want to see every entry behind an account balance, so that I can trace a number to its source.

    Given an account with a balance · when I open it for a date range · then I see every line, its journal and number, its date, its source module and document, its party and memo, oldest to newest, with a running balance that ends on the account's balance

    Auditor · screen: Account · reference: not built in v1 (no route lists the lines; lines carry no reference); v6: the route is GET /accounts/{account_id}/lines (seam GL-04), also read by consolidation's report drill-down

  • GL-05As the accountant, I want a trial balance at a date or for a period, so that I can prove the books balance before I report anything.

    Given posted journals · when I run the trial balance for a company and ledger (the leading ledger by default) as at a date, or for a period · then total debits equal total credits exactly (no float tail) and each account shows its opening (the carry-forward, GL-23), period movement and closing balance in the company's functional currency, and in its own currency where it has one; with splitting on, the same holds per segment and per profit centre; a ledger's figures are its common journals plus its own ledger-specific ones, never another ledger's

    Accountant / finance manager · screen: Reports · reference: partial: v1 snapshots per PERIOD; no as-at-date version

  • GL-06As the accountant, I want profit and loss and a balance sheet for a period, so that I can tell the owner how the business did.

    Given a closed or open period · when I run the reports for a company and ledger through a published financial statement version (GL-53), optionally by segment or profit centre, optionally beside the prior year or the budget (GL-55) · then income less expenses for the period alone (filtered by journal date, not since the last close) gives the result; the balance sheet balances with the year's result shown as its own line (carried into retained earnings by the carry-forward, GL-23); each line opens to the accounts behind it and each account to its lines (GL-04); the report names the version and the ledger it was run on

    Accountant / finance manager · screen: Reports · reference: partial: v1 sums the all-time ledger and labels it with a period; no drill-down

  • GL-07As the accountant, I want to close a month, so that nobody can change history after we have reported it.

    Given a period of company UK01 whose readiness is met (the prior period closed, no manual journal waiting, the receivable and payables reconciled or their difference accepted, foreign balances and open items revalued where revaluation is on, recurring entries, accruals, allocations and depreciation posted, intercompany matched, open items re-split by profit centre where splitting is on, and the closing cockpit signed off where it is on) · when I close it (a period is closed per company; DE01's 2026-09 stays open until its own close) · then further operational postings dated in that period are refused with the period named and the fix (date it in an open period); the year-end closing entry is still allowed; reopening is a deliberate act with a reason, by someone other than the closer where the owner asks for it, and recorded

    Accountant / finance manager · screen: Periods · reference: implemented (v1 lock, without readiness or the second person)

    Usually different per customer: who may close and reopen, and whether a soft close (warn) comes before the hard one

  • GL-08As the bookkeeper, I want to reconcile what the ledger says against the open invoices behind it, so that the receivables figure is not a guess.

    Given a receivables control account and the invoices posted to it · when I reconcile as at a date · then I see the ledger balance, payments' outstanding for those invoices as at the same date, and the difference broken down per invoice (posted but not in payments, settled in payments but not posted, amounts that differ), each break with its fix; with purchasing installed, the payables control account the same way against purchasing's open bills, per bill

    Bookkeeper · screen: Reconcile · reference: partial: v1 reconciles against its own subledger_items table, which v2 retires

  • GL-09As the accountant, I want balances in a second currency restated at the rate of the day, so that foreign balances are not carried at last year's rate.

    Given a USD 10,000.00 balance on bank account 1210 (monetary, not open-item managed) of UK01, carried at 7,800.00 GBP, and a closing rate of 0.790000 on 2026-09-30 · when I revalue balances for UK01 as at 2026-09-30, for each ledger of the company · then per ledger, by its revaluation method (closing_rate: the IAS 21 closing rate, gains and losses; losses_only: only a loss is recognised, as local GAAPs such as HGB section 256a require for items over a year): a ledger-specific journal of 100.00 to the map's fx_gain, reversing on 2026-10-01 (posted then or held until 2026-10 opens, GL-24); the run is keyed (company, ledger, key date, balances), records its journals, and running it twice posts once; receivable and payable control accounts are not revalued here but per open item (GL-48)

    Accountant / finance manager · screen: Currencies · reference: implemented in v1, without the reversal or the journal link

  • GL-10As the accountant, I want to see a group of accounts rolled up, so that a report line means the same thing as the accounts under it.

    Given a parent account with children · when I open the rollup as at a date · then the parent shows the total of everything beneath it however deep, and the tree can be walked from any node

    Accountant / finance manager · screen: Accounts · reference: partial: v1 reads a graph nothing builds, capped at five levels

  • GL-11As the accountant, I want manual journals approved by someone other than whoever proposed them, when the owner asks for it, so that one person cannot move money in the books alone.

    Given a proposed manual journal and the owner's manual_journal_approval set to above_threshold or always · when I approve or reject it · then approved, it posts with its number and the approver recorded; rejected, it stays readable with the reason; the proposer cannot approve it, matched on BOTH email and sub, so a second login of the same person is still the proposer

    Accountant / finance manager · screen: Journal · reference: not built

  • GL-12As the accountant, I want one account map that says where invoicing, payments and tax post, so that a new tax code or bank account is set up once and every module agrees.

    Given the purposes the composed modules post (receivable, revenue, deposit, tax per tax_code, bank per bank account, bad_debt, fx_gain, fx_loss, rounding, retained_earnings, split_clearing, ic_receivable and ic_payable per partner company, accrual_balance, prepaid, deferred_revenue, assessment; and fixed-assets' asset_cost, accumulated_depreciation, depreciation_expense, asset_clearing, disposal_gain, disposal_loss per asset class) · when I map a purpose to an account of the chart, dated from a day after today (the map is per chart, so companies sharing a chart share it) · then postings dated on or after that day resolve the purpose to that account; earlier postings are untouched; a source posting naming a purpose with no row in force is refused with the purpose named, and readiness shows every unmapped purpose before the first posting

    Accountant / finance manager · screen: Account map · reference: not built (invoicing keeps its own ar_account_map today: an open customer decision)

  • GL-13As the accountant, I want to open and close a financial year, so that the year's result moves to retained earnings once, at year end.

    Given FY2026 of UK01 whose twelve periods are closed, the audit adjustments posted (GL-56), and retained_earnings mapped · when I close the year · then the carry-forward (GL-23) is derived for every ledger of the company: each balance-sheet account opens FY2027 with its closing balance (per profit centre, segment and partner company), and the sum of income and expense opens FY2027 on retained earnings (per segment where splitting is on); no journal is posted (SAP balance carry-forward, not a closing entry); the year is closed to adjustments; the next year opens if it is not; closing twice derives the same rows

    Accountant / finance manager · screen: Periods · reference: partial: v1 rolls the P&L away every month with a journal; v3 carries forward without one

  • GL-14As the owner, I want the controls on the people who keep the books held by me, so that a bookkeeper cannot switch off the second approver for their own journals.

    Given an accountant holding gl:settings:write and an owner holding gl:settings:controls · when the accountant tries to set manual_journal_approval to none, then the owner sets it to above_threshold from tomorrow · then the accountant is refused (a control); the owner's row takes effect from tomorrow, never today or earlier; the history of every control row is readable

    The owner (or whoever the owner names) · screen: Settings · reference: not built

  • GL-15As the accountant, I want an AI check of a proposed manual journal before I approve it, so that a duplicate, an odd account pair or an amount out of pattern is caught first.

    Given a proposed manual journal and the check switched on (suggest) · when the check runs · then findings are listed with their evidence; I accept or dismiss each, recorded with who and when; nothing in the journal changes, and approval never waits on a finding

    Accountant / finance manager · screen: Journal · reference: not built

  • GL-35As the owner moving off Odoo, I want the trial balance per account and period reconciled against Odoo to the penny, and to sign it, so that I know the books came across whole before I switch.

    Given a loaded migration run · when the checks are computed and I sign · then every check is equal or explained where explaining is allowed; the trial balance per account and period must be equal and cannot be explained away; signing records who, when and the run's checksums

    The owner (or whoever the owner names) · screen: Migration · reference: not built

  • GL-40As the accountant, I want each legal entity kept as its own company code in the same books, so that each files its own accounts while the group reads them together.

    Given UK01 (GBP, chart MAIN, year ending December) exists as the default company; DE01 is a German GmbH reporting in EUR · when I add company DE01 with its name, country DE, functional currency EUR, chart MAIN, financial year end month 12, its business partner (bp_id) and its ledgers · then DE01 has its own fiscal years, periods, number series (per company, book and year), FX revaluation and close; every posting carries a company_code, and one that names none lands in the default company, so a single-company bucket and every built caller work unchanged; company_code and functional currency are fixed once a journal uses them; a code that is not 1 to 4 upper-case letters or digits is refused 422; the company's bp_id is what lets a sale to that partner be recognised as intercompany (GL-51)

    Accountant / finance manager · screen: Companies · reference: not built

  • GL-41As the accountant, I want each company's chart mapped to one group chart, and a local account number where the country asks for one, so that the group reports one way while each company files its own way.

    Given chart MAIN (operational) used by UK01 and DE01, chart GROUP (kind group), and DE01's tax adviser expecting SKR04 numbers in its exports · when I map account 4000 Revenue to group account G-4000 from 2026-11-01 and give account 4000 the alternative number 4400 in DE01 · then the group extract (GL-38) reports 4000 under G-4000 from that date; every account with a posting and no group account is listed by the readiness gate group_mapped (consolidation cannot collect until it is met); a group account cannot be posted to directly (422 gate group_chart_not_postable); the FEC and SAF-T exports of DE01 (GL-59) use 4400; a mapping or alternative number is dated after today and its history is readable

    Accountant / finance manager · screen: Accounts · reference: not built

  • GL-42As the accountant, I want a leading ledger and a local-GAAP ledger kept in parallel, so that IFRS group figures and statutory accounts come from one set of postings.

    Given ledger IFRS (leading, IFRS, revaluation closing_rate) and ledger LOCAL (non-leading, UK GAAP FRS 102, revaluation closing_rate) assigned to UK01 from FY2026; a lease that IFRS 16 capitalises and FRS 102 expenses · when an invoice posts with no ledger named, and I propose a manual journal naming ledger IFRS for the right-of-use asset · then the invoice is stored once and counts in both ledgers; the IFRS journal counts only in IFRS; every report, balance and carry-forward is per ledger; naming a ledger the company is not assigned to is refused 422 (gate ledger_assigned); the leading ledger is mandatory and cannot be removed; a ledger added later starts on the first day of a fiscal year, opening with the leading ledger's carry-forward (GL-23) adjusted by ledger-specific journals dated that day

    Accountant / finance manager · screen: Companies · reference: not built

    Usually different per customer: which GAAPs, and which of them leads (usually IFRS for a group, local GAAP for a standalone company)

  • GL-43As the accountant, I want profit centres and segments as dimensions on every line, derived where nobody types them, so that segment results and balance sheets come out of the ledger itself.

    Given segments RETAIL and B2B; profit centres PC-LON (RETAIL) and PC-WHS (B2B); cost centre CC-SHOP1 assigned to PC-LON from 2026-01-01; account 4000 with default profit centre PC-WHS; UK01's default profit centre PC-HQ · when a line arrives with cost centre CC-SHOP1 and no profit centre, another on 4000 with neither · then the first gets PC-LON and segment RETAIL (cost centre's assignment on the journal date), the second PC-WHS and B2B (the account's default), any other the company default; an explicit profit centre wins; a profit centre not valid for the company or on the date is refused 422 (gate profit_centre_valid); an account whose field status requires a cost centre (or forbids one) refuses a line without (with) it (gate field_status); a profit centre's segment is dated, and re-assigning one never moves posted lines

    Accountant / finance manager · screen: Dimensions · reference: not built

    Usually different per customer: whether segments are reported at all (IFRS 8 applies to listed entities; most SMEs use profit centres only)

  • GL-45As the accountant, I want rent, leases and standing charges posted every month from an approved template, so that nobody re-keys them and nobody forgets one.

    Given template RENT-LON (UK01, all ledgers, monthly 2026-01 to 2026-12, last day of the month, Dr 6100 rent 2,500.00 PC-LON / Cr 2100 accruals 2,500.00) proposed by one accountant and approved by another · when I run recurring entries for 2026-10, and run them again · then one journal per due template is posted, keyed derived_id("recurring", recurring_id, version, period_id), in book misc with its number; the second run posts nothing new and answers what it already posted; the run lists each template posted or skipped with the reason (not approved, period closed, ended); a template is approved by someone other than its proposer (email AND sub) when manual_journal_approval asks for it; changing a template makes a new version that needs approval again, and the old version stops at the change date; a closed period is refused

    Accountant / finance manager · screen: Recurring · reference: not built

  • GL-46As the controller, I want overheads assessed and distributed to the departments that use them by agreed rules, so that each department's result carries its real cost.

    Given cycle OVH-2026 (UK01, ledger IFRS, approved by the accountant): segment 1 assesses cost centre CC-IT (accounts 6000-6999, actual 9,000.00 in 2026-10) to CC-SHOP1, CC-SHOP2 and CC-WHS by headcount (5, 3, 2); segment 2 distributes rent account 6100 of CC-HQ 50/50 to PC-LON and PC-WHS · when I simulate the cycle for 2026-10, review it, post it, then reverse it and post it again · then the simulation shows senders, receivers, rule, key figure and amounts (4,500.00, 2,700.00, 1,800.00) and posts nothing; posting writes one journal per segment keyed derived_id("allocation", cycle_id, period_id, ledger_id, run_no, segment): an assessment credits the sender and debits the receivers on the assessment account, a distribution moves the original accounts; the amounts sum to the sender's exactly (largest remainder, to the penny); segments run in order, so segment 2 sees segment 1's result; a second post while a run is posted is refused (gate prior_run_reversed); reversing posts mirror journals and lets run_no 2 post; a posted run freezes the key figures it used

    Controller (management accountant) · screen: Allocations · reference: not built

    Usually different per customer: the rules (fixed percentages, fixed amounts, statistical key figures, actual postings on a tracing account) and whether a cycle needs a second approver

  • GL-47As the controller, I want headcount, floor space and similar key figures recorded per period, so that allocations follow numbers we agreed, not guesses.

    Given key figure HEADCOUNT for 2026-10 · when I record 5 for CC-SHOP1, 3 for CC-SHOP2 and 2 for CC-WHS (by hand or from a CSV of the same columns) · then the values are stored per key figure, period and receiver (NUMERIC(19,4), never negative, 422 above it); a value a posted allocation run used is refused with the run named (reverse the run first); a receiver that is not a valid cost or profit centre on the period is refused 422

    Controller (management accountant) · screen: Allocations · reference: not built

  • GL-48As the accountant, I want each open foreign-currency invoice and bill revalued at the period-end rate, so that receivables and payables are stated at the closing rate as IAS 21 requires.

    Given UK01 invoice INV-88 of USD 1,000.00 booked at 0.800000 (800.00 GBP) and still open in payments at USD 1,000.00; bill B-17 of EUR 500.00 booked at 0.860000 open in purchasing at EUR 500.00; closing rates 0.790000 USD and 0.870000 EUR on 2026-10-31 · when I revalue open items for UK01 as at 2026-10-31, for each ledger · then gl reads the open items from payments' GET /settlement and purchasing's GET /bills/open as at the key date, takes each item's booked rate from the journal that posted it, and posts per ledger and by its method one journal of lines per item on the control account (against_document = the item, so the split follows it) to the map's fx_gain / fx_loss: INV-88 a loss of 10.00, B-17 a loss of 5.00; the journal reverses on 2026-11-01 (GL-24), so the next run starts from the booked rate again; the run is keyed (company, ledger, key date, open_items) and running it twice posts once; an item with no closing rate blocks the run with the currency named; an item gl never posted is listed as a break, not revalued

    Accountant / finance manager · screen: Currencies · reference: not built

  • GL-49As the accountant, I want prepayments and deferred income released over the months they cover from one registration, so that each month carries its share without a manual journal every month.

    Given an insurance premium of 12,000.00 for 2026-01 to 2026-12 already posted to prepaid (account 1400) on 2026-01-15, registered as deferral INS-2026 (UK01, all ledgers, expense 6300, straight-line by period, PC-HQ) · when the registration is approved and I run accruals for 2026-01, and later for each month · then each run posts Dr 6300 1,000.00 / Cr 1400 1,000.00 keyed derived_id("accrual", accrual_id, period_id); the last period takes the rounding remainder so the total released equals the registration to the penny; running a period twice posts once; terminating the deferral in 2026-07 posts the remaining 6,000.00 in that period and nothing after; daily proration is a method alternative; a registration above manual_journal_threshold needs a second person; deferred revenue (Dr deferred_revenue / Cr income) and expected accruals (Dr expense / Cr accrual_balance, cleared when the invoice arrives) follow the same schedule; the registration may name the journal it defers

    Accountant / finance manager · screen: Accruals · reference: not built

  • GL-50As the accountant, I want a month-end accrual to reverse itself on the first day of the next month, so that the real invoice next month is not counted twice.

    Given a manual journal accruing 3,000.00 of October audit fees, dated 2026-10-31, flagged reverse_next_period · when it posts · then a reversal keyed derived_id(journal_id, "reversal") dated 2026-11-01 is posted at once if 2026-11 is open, otherwise held as pending and posted when 2026-11 opens (GL-24); the pending reversal is listed on the Periods screen and in the close readiness of 2026-11; the original cannot be reversed by hand while its auto-reversal is pending (one reversal, never two)

    Accountant / finance manager · screen: Accruals · reference: not built

  • GL-51As the accountant, I want one entry that charges a cost between two of our companies to post in both with the due-to and due-from lines made for me, so that the intercompany balances always agree.

    Given UK01 pays a 1,000.00 GBP software licence that DE01 uses; ic_receivable/ic_payable mapped per partner company; both 2026-10 periods open · when I propose a cross-company journal (Cr UK01 bank 1,000.00; Dr DE01 6400 software 1,000.00 GBP) and it is approved · then gl posts one journal per company in one transaction, keyed derived_id(ic_document_id, company_code) and linked by ic_document_id: UK01 Dr ic_receivable(DE01) / Cr bank; DE01 Dr 6400 / Cr ic_payable(UK01), converted to EUR at DE01's rate on the date, each balanced in both currencies; partner_company is set on every intercompany line; a closed period in either company refuses both (gate ic_periods_open); the second approver applies to the whole document; a source posting (an ar invoice to DE01's bp_id) gets partner_company DE01 on its lines without the caller sending it

    Accountant / finance manager · screen: Intercompany · reference: not built

  • GL-52As the accountant, I want intercompany balances and charges matched between each pair of companies before the close, so that the group eliminates what agrees and I fix what does not.

    Given UK01's ic_receivable with partner DE01 of 1,000.00 GBP and DE01's ic_payable with partner UK01 of 1,150.00 EUR (1,000.00 GBP at 0.869565); an ar invoice of UK01 to DE01 of 500.00 GBP that DE01's purchasing bill (ic_reference INV-90) carries at 498.00 · when I match UK01 against DE01 as at 2026-10-31 · then items are matched by ic_document_id (always equal), then by ic_reference, then the remaining balance per pair and transaction currency; INV-90 is a break of 2.00 with its fix (post the difference or correct the bill); breaks at or below ic_tolerance are listed as within tolerance; revenue and expense pairs are matched the same way for consolidation; I accept a difference with a reason, recorded; the result is keyed "<company>:<partner>:<as_at>" and read by consolidation (GL-38); the close gate ic_matched refuses, warns or is off as ic_match_required says

    Accountant / finance manager · screen: Intercompany · reference: not built

  • GL-53As the accountant, I want financial statement versions that say which accounts make up each line, so that the same ledger produces our IFRS statements, the statutory format and a management view.

    Given version IFRS-BS-PL with nodes Assets > Current > Cash, Liabilities > Current > Overdraft, and bank accounts 1200-1299 assigned debit-balance to Cash and credit-balance to Overdraft · when I check and publish it, and run the balance sheet with it · then a bank account with a credit balance shows under Overdraft (debit/credit-dependent assignment); publishing is refused while an account with a balance is unassigned or assigned twice (gate fsv_complete, the accounts named); a published version is never edited: a change is version_no + 1, and a report names the version it used; several versions run on the same ledger; the profit-and-loss node of a version shows the year's result line

    Accountant / finance manager · screen: Statement versions · reference: not built

  • GL-54As the accountant, I want a cash-flow statement from the ledger, so that the owner sees where the cash went without a spreadsheet.

    Given a cash-flow version (kind cash_flow, indirect method) assigning each balance-sheet account's movement to operating, investing or financing, depreciation added back, and accounts 1200-1299 as cash · when I run it for 2026-10 for UK01, ledger IFRS · then the statement starts from the period's result, adds back non-cash items, shows working-capital movements and the investing and financing lines; the net cash flow equals the movement on the cash accounts to the penny, or the report lists the unassigned movements that make the difference (gate cash_flow_complete); unrealised FX on cash is its own line (IAS 7.28)

    Accountant / finance manager · screen: Statement versions · reference: not built

  • GL-55As the controller, I want a budget per account, profit centre and month, approved and frozen, so that plan against actual means the same thing all year.

    Given budget B2026 (UK01, ledger IFRS, FY2026, version 1) with lines per account, profit centre, cost centre and period, imported from a CSV of those columns · when I submit it and the accountant approves it, then I revise it in June · then the approved version is frozen (lines refused 409); a revision is version 2, approved the same way, and the plan/actual report names the version; plan/actual shows actual, budget, variance and variance % per line of a statement version and per profit centre; amounts bounded NUMERIC(18,2) (422 above); the approver is not the submitter (email AND sub); a budget never posts to the ledger

    Controller (management accountant) · screen: Budgets · reference: not built

  • GL-56As the accountant, I want the auditor's year-end adjustments posted after the last month is closed but kept apart, so that the pre-audit and the audited trial balance can both be shown.

    Given FY2026 of UK01, its December closed, the year open · when I post an audit adjustment dated 2026-12-31 and another accountant approves it · then it posts into the closed last period flagged adjustment (book adjustment, its own numbers), always with a second person; operational postings stay refused; the trial balance can be run before or after adjustments; the carry-forward to FY2027 is re-derived (GL-23); once the year is closed an adjustment is refused (gate year_open) with the fix (post it in the current year as a prior-period correction)

    Accountant / finance manager · screen: Periods · reference: not built

  • GL-57As the accountant, I want a month-end checklist where the system ticks what it can check and people tick the rest, so that the close is the same every month and nothing is skipped.

    Given task list MONTH-UK (recurring entries run, accruals run, depreciation posted, allocations posted, balances and open items revalued, intercompany matched, receivables and payables reconciled, open items re-split, a manual task "payroll journal received" owned by the bookkeeper due on business day 2) · when I start the close run for UK01 2026-10 · then each task is instantiated with its owner, due business day (in business_timezone) and dependencies; a system task is met when its readiness gate is met (checked on read, never ticked by hand); a manual task is done with a note or evidence (an object key under raw/close/), or not applicable with a reason; a task cannot complete before the tasks it depends on; the run shows what is late; a year-end list (MONTH-UK plus carry-forward and adjustments) runs for the last period

    Accountant / finance manager · screen: Close cockpit · reference: not built

  • GL-58As the finance manager, I want a second person to sign off the month's close, so that one person cannot both prepare and approve the books.

    Given the close run for UK01 2026-10 with every task done or not applicable, prepared by one accountant · when another accountant signs it off, then the period is closed · then the sign-off records who, when and a digest of the trial balance; the preparer (or a task's completer) cannot sign (email AND sub); with close_cockpit on, close_period is refused until the run is signed (gate close_signed_off); a posting after the sign-off and before the close (the period still open) makes the sign-off stale and asks for it again

    Accountant / finance manager · screen: Close cockpit · reference: not built

  • GL-59As the auditor, I want to prove nothing in the ledger was changed after it was posted, and to take the file the tax authority asks for, so that the books meet GoBD and the FEC.

    Given FY2026 of company FR01 posted and closed · when I verify the chain and export the FEC, and a SAF-T file for UK01 · then every posted journal carries chain_seq, prev_hash and row_hash per company (sha-256 over the canonical journal and its lines); the verification answers met, or the first broken link with its journal; the FEC has the 18 columns of article A47 A-1 of the LPF (JournalCode ... Idevise), one row per line, entry numbers without gaps, the opening (a-nouveaux) lines from the carry-forward, alternative account numbers where set, named <SIREN>FEC<yyyymmdd>.txt; SAF-T follows the OECD SAF-T Financial 2.0 layout; each export is stored as an object under raw/audit/<company>/<fy>/ with its sha-256 and who produced it; master-data and settings changes are in the change log with before and after

    Auditor · screen: Audit · reference: not built

    Usually different per customer: which country file (FEC for France, SAF-T for Norway, Portugal, Poland and others, GoBD data access for Germany); retention is 10 years for each

  • GL-60As the owner, I want to say which companies each person may see and post in, so that a subsidiary's bookkeeper does not see the parent's books.

    Given a bookkeeper who keeps DE01 only · when I give them access to DE01 from tomorrow · then from then on every read and write outside DE01 answers 404 (not found, not forbidden), the trial balance and reports list DE01 only, and a cross-company journal touching UK01 is refused; access rows are dated, held under gl:settings:controls and never by whoever they control; a person with no row sees every company (the default, for single-company books)

    The owner (or whoever the owner names) · screen: Settings · reference: not built

Things that happen on their own

  • GL-20after every postingThe system re-derives the balances of the accounts a journal touched, so that a balance is always the sum of its lines and never drifts.

    Given three postings landing on one account at the same time · when they commit · then the balance equals the signed sum of every posted line, computed with SUM in a second committed transaction (never incremented), so concurrent postings land once each

    · reference: implemented (v1)

  • GL-21after a close, and on requestThe system materialises the trial balance and the statements of a closed period, so that a report of a closed period is fast and stable.

    Given a closed period · when the statements are materialised · then the stored figures match a fresh computation, and re-materialising changes nothing (keyed report, period)

    · reference: partial: v1 materialises on request only

  • GL-22inside every posting, before its commitThe system resolves every journal line to the universal line with its profit centre, segment and partner company, and splits it where document splitting is on, so that every segment balances on every journal.

    Given splitting on for UK01 from FY2026; an invoice of revenue 600.00 PC-LON and 400.00 PC-WHS, VAT 200.00 and receivable 1,200.00; a payment Dr bank / Cr receivable against_document the invoice; a transfer Dr 6000 PC-LON 100.00 / Cr 6000 PC-WHS 100.00 · when each posts · then the invoice's receivable splits 720.00 / 480.00 and its VAT 120.00 / 80.00 in proportion to the base lines; the payment's lines follow the invoice's split (passive split), and without against_document they take the company's default profit centre (re-split at period end, GL-25); the transfer gets zero-balance lines on split_clearing of 100.00 per profit centre; every journal nets to zero per profit centre and per segment in both currencies; the split amounts sum to the line exactly (largest remainder, to the penny); with splitting off each line gives one universal line with its derived profit centre; splitting is switched on only from a fiscal year's first day and never off within a year

    · reference: not built

  • GL-23when a year closes, and again whenever a posting lands in a prior year (an audit adjustment, a reopened period)The system derives each year's opening balances from the previous year's closing ones, so that the balance sheet carries forward and the result lands in retained earnings without a closing entry.

    Given FY2026 closed for UK01 in ledgers IFRS and LOCAL; then an audit adjustment of 500.00 expense posts into 2026-12 · when the carry-forward is derived, then derived again · then balance-sheet accounts open FY2027 with their FY2026 closing (per ledger, profit centre, segment, partner company), income and expense open at zero and their sum opens on retained earnings; after the adjustment retained earnings opens 500.00 lower; re-deriving writes the same rows (upsert with every value in VALUES); a carry-forward older than the last posting into its year is marked stale and the close of the new year's first period waits for it (gate carry_forward_current)

    · reference: not built

  • GL-24when a period opens, and after every posting that asks for a reversal (GL-09, GL-48, GL-50)The system posts a reversal dated the first day of the next period as soon as that period is open, so that an accrual or a revaluation never stays in the books longer than a month.

    Given a revaluation journal of 2026-10-31 whose reversal is due 2026-11-01, and 2026-11 not yet open · when the accountant opens the periods of 2026-11 (or they are already open) · then the pending reversal posts once, keyed derived_id(journal_id, "reversal"), dated 2026-11-01; a second open or a retry posts nothing; a pending reversal is never dropped (it is a readiness reason of the next period's close)

    · reference: not built

  • GL-25at period end, as a close task, where splitting is onThe system re-splits receivables and payables by profit centre from their open items, so that a receipt posted before it was allocated does not leave the receivable in the wrong segment.

    Given UK01 receivable 1,200.00 posted to PC-LON 720.00 / PC-WHS 480.00 by an invoice, and a receipt of 1,200.00 posted to PC-HQ (no against_document) and allocated to that invoice in payments afterwards · when the re-split runs as at 2026-10-31 · then gl reads the open items (payments' GET /settlement, purchasing's GET /bills/open), computes the target split per profit centre from each item's posted split, and posts one adjustment journal on the control accounts with split_clearing lines, so the receivable per profit centre is what its open items say (here zero everywhere); it reverses on the first day of the next period (GL-24); keyed (company, ledger, as_at, resplit); twice posts once

    · reference: not built

Things that cross into other modules

  • GL-30when another module records something with an accounting consequence (an invoice issued or voided, a credit note or write-off approved, a receipt recorded or reversed, a refund paid, a VAT return settled)Other modules post their entries here rather than keeping their own books, so that the accounts are complete without anyone re-keying.

    Given invoicing issuing an invoice of 1,000.00 plus 200.00 VAT · when it calls POST /journal-entry/journals with source_module ar, source_document the invoice id, event issue, and lines naming accounts or purposes (company_code, ledger_id, profit_centre, partner_company, movement_type, against_document and asset_id are optional, so today's body is served unchanged) · then a balanced journal exists in the default company (or the one named) with the source named and its number; journal_id = derived_id(source_document, event) (derived_id(source_document, event, ledger_id) for a ledger-specific one), so the same call again answers the same journal (replay) and a different body for the same id is refused 409; a date in a closed period of that company is refused 409 with the period named; an unmapped purpose 422 with the purpose named; a bp_id that belongs to a group company sets partner_company on the line; the lines are split (GL-22) before the commit

    · owned by gl · reference: implemented in v1 for account ids only (no purposes, no replay answer, no number)

  • GL-31when the bookkeeper reconciles the receivable control account (GL-08)The ledger asks payments what is outstanding on the invoices it has posted, so that the control account is reconciled against the module that owns the open items.

    Given invoices posted by ar to the receivable account up to a date · when the reconciliation runs · then gl calls payments' GET /settlement with those invoice ids (200 per call) as at the date, and compares per invoice; gl never reads pay_ tables

    · owned by payments · reference: not built

  • GL-36when the bookkeeper reconciles the payables control account (GL-08), with purchasing installedThe ledger asks purchasing what is still owed on the bills it has posted, so that the payables control account is reconciled against the module that owns the open bills.

    Given bills and supplier payments posted by purchasing to the payables account up to 2026-10-31; bill B-17 posted at 216.00 and 100.00 paid · when the reconciliation runs as at 2026-10-31 · then gl calls purchasing's GET /bills/open?as_of=2026-10-31 and compares per bill (the bill id is the source_document of purchasing's journals): B-17 outstanding 116.00 on both sides is no break; a bill open in purchasing but not posted, or posted at a different amount, is a break with its fix; gl never reads pur_ tables and purchasing calls no subledger route

    · owned by purchasing · reference: not built

  • GL-32before a module issues a document whose accounting date may fall in a closed periodAnother module asks whether a date is open for posting, so that it refuses before issuing rather than after.

    Given the period 2026-09 is closed · when invoicing calls GET /periods/open?date=2026-09-30 (company_code optional; the default company when absent) · then {date, company_code, period_id: 2026-09, open: false, status: closed, reason, fix} (status none, open false, when no period covers the date)

    · owned by gl · reference: not built

  • GL-33when a module needs a rate for a currency on a date (tax, a foreign VAT total in sterling)Other modules read FX rates here rather than keeping their own, so that a document and its journal use the same rate.

    Given rates for EUR dated 2026-09-29 and 2026-10-01 · when tax calls GET /fx-rates/EUR?on=2026-09-30 (type spot by default; type=average or closing, and to= another currency, for consolidation) · then the rate in force: {currency: EUR, to: GBP, type: spot, on: 2026-09-30, rate_date: 2026-09-29, rate, source}; 404 with the fix when no rate of that type is dated on or before the date; an average rate is the one dated the period's last day. v6: the lookup is the NEWEST rate of that type dated ON OR BEFORE `on` (rate_date says which), never a later one; a monthly average is addressed by month, GET /fx-rates/EUR?type=average&month=2026-09 (instead of on), which answers exactly the average dated that month's last day and 404s when there is none, never the nearest

    · owned by gl · reference: not built

  • GL-34once at cut-over (and again after a fix, before signing)The ledger carries Odoo's chart, journals, posted entries, fiscal years, lock dates and rates, so that the books continue without re-keying and with history comparable.

    Given an Odoo database and the doors decided; business-partner and tax have mapped every partner and tax the entries use · when the run loads · then accounts, periods, rates and posted journals written read-only, keyed on the Odoo record (migration.odoo.idempotent_on); a second run changes nothing; nothing of a signed run is ever rewritten by a later run, which only adds what Odoo posted after its cut-over

    · owned by gl · reference: not built

  • GL-37when fixed-assets acquires, depreciates, transfers, revalues, impairs or retires an assetFixed assets post their entries here, per ledger where depreciation differs, so that the asset accounts and the asset register always agree.

    Given asset A-100 (class VEH, UK01, cost centre CC-WHS) acquired for 30,000.00; depreciation areas IFRS (5 years) and LOCAL (4 years) mapped to ledgers IFRS and LOCAL; the 2026-10 depreciation run computes 500.00 and 625.00 · when fixed-assets calls POST /journal-entry/journals once for the acquisition (no ledger: common) and once per ledger for the run (source_document "dep:UK01:IFRS:2026-10:1", event depreciate, ledger_id IFRS; the same for LOCAL) · then the acquisition posts Dr asset_cost(VEH) / Cr asset_clearing(VEH) in every ledger; each run posts Dr depreciation_expense(VEH) / Cr accumulated_depreciation(VEH) in its ledger only, keyed derived_id(source_document, event, ledger_id), with asset_id, cost centre (so profit centre and segment are derived) and movement_type (addition, depreciation, disposal, transfer, revaluation, impairment) on each line; an asset_cost or accumulated_depreciation account is source_only, so a manual journal on it is refused 422 (gate source_only_account); a replay answers the journal posted; a closed period refuses 409; an unmapped asset-class purpose refuses 422

    · owned by gl · reference: not built

  • GL-38when consolidation collects a company's reported data for a group period (and again before its sign-off)Consolidation reads each company's balances by group account here, through one exact route, so that the group figures come from the books and never from a re-keyed trial balance.

    Given UK01 2026-10 closed in ledger IFRS; every posted account mapped to a group account; intercompany matched for 2026-10 · when consolidation calls GET /group-reporting/balances?company_code=UK01&ledger_id=IFRS&period_id=2026-10 · then gl answers the year-to-date and period amounts in the company's functional currency per group account, partner company, movement type and segment, with the period's status, the ledger, the functional currency, the unmapped accounts (none here) and a digest of the rows; the same call twice answers the same digest while nothing posts; an open period answers status open so consolidation can refuse or warn; GET /intercompany/reconciliation answers the pair's match result (GL-52); gl never writes cons_ tables

    · owned by gl · reference: not built

  • GL-39when the accountant reconciles the asset accounts, and when the closing cockpit checks "depreciation posted"The ledger asks fixed-assets whether depreciation is posted and what the register says per asset class, so that the asset accounts are reconciled against the module that owns the assets.

    Given UK01 asset accounts per class and ledger as at 2026-10-31, and fixed-assets' register · when the reconciliation runs, and the close task checks depreciation · then gl calls fixed-assets' GET /assets/balances (cost and accumulated depreciation per asset class and ledger as at the date) and compares per class and ledger, each break with its fix; it calls GET /depreciation/status for the company, ledger and period and shows its readiness {gate, met, reason, fix} as the close gate depreciation_posted; gl never reads fixed-assets' tables

    · owned by fixed-assets · reference: not built

  • GL-61when another module needs a company's functional currency, a cost centre's validity or an account's balance at a dateOther modules read a company, a cost centre and an account balance here, so that the functional currency, the cost centres and the book side of a reconciliation have one source.

    Given company UK01 (functional currency GBP), cost centre CC-410 open in UK01 and CC-999 closed, bank account 1200 with 12,400.00 posted up to 2026-10-31 · when ar and payments call GET /companies/UK01, inventory calls GET /cost-centres/CC-410 and GET /cost-centres/CC-999, payments calls GET /accounts/1200/balance?as_of=2026-10-31 · then UK01 answers its name, country, functional currency, chart and ledgers; CC-410 answers status open with its company and CC-999 status closed (the caller's gate refuses it, gl writes nothing); 1200 answers 12,400.00 GBP as of that date, the sum of its posted lines; an unknown company, cost centre or account is 404; a company the caller's client may not see is 404, not 403

    · owned by gl

How things move

journal

proposed → posted → rejected → reversed

  • none → posted by system · when balanced in document and functional currency; every purpose mapped on the journal date; the company's period open; the ledger (if named) assigned to the company; source-only accounts posted only by their module; field status met; journal_id = derived_id(source_document, event[, ledger_id]) · lines written with the source named; split to universal lines (GL-22); hash chain extended; number claimed per company, book and year; balances re-derived in a second transaction; a replay answers the journal already posted
  • none → proposed by bookkeeper or accountant · when balanced; dated in an open period and not after today; the proposer has access to the company; no source-only or group account on a line · proposer recorded (email and sub); a ledger may be named (ledger-specific); reverse_next_period may be flagged (GL-50)
  • none → proposed by bookkeeper or accountant · when lines in two or more companies the proposer has access to; ic_receivable and ic_payable mapped for every pair; each company's period open · one ic_document_id; the due-to and due-from lines computed and shown before approval (GL-51)
  • none → proposed by accountant · when dated in the last period of an open financial year; that period closed · flagged adjustment, book adjustment; always waits for a second person (GL-56)
  • proposed → proposed by system · when the check is on · findings listed for the approver
  • proposed → proposed by accountant · when the journal has findings (GL-15) · each decision recorded in gl_ai_finding
  • proposed → posted by system · when manual_journal_approval is none, or the total is at or below the threshold; never an adjustment or a cross-company journal above the threshold · numbered; split; chained; balances re-derived; an auto-reversal posted or held (GL-24)
  • proposed → posted by accountant · when the approver is not the proposer (email AND sub); every company's period is still open (the last period closed but the year open, for an adjustment) · numbered; approver recorded; one journal per company for a cross-company document, in one transaction; balances re-derived; the carry-forward marked stale for an adjustment
  • proposed → rejected by accountant · needs reason
  • posted → reversed by accountant · when the reversal date (today, or the first day of the next open period) is in an open period; no auto-reversal pending · needs reason · a mirror journal keyed derived_id(journal_id, 'reversal'), split the same way; neither is deleted; a cross-company journal reverses with its partners
  • posted → reversed by system · when the journal asked for a reversal on the next period's first day (accrual, revaluation, re-split) and that period is open · the mirror journal dated that day, once (GL-24)

period

open → closed

  • none → open by accountant · when the company's fiscal year is opened (GL-13) · one period per month of the year, period_id YYYY-MM, per company; pending reversals dated in them posted (GL-24)
  • open → open by bookkeeper · the breaks against payments' settlement recorded as at the period end (GL-08)
  • open → open by bookkeeper · when purchasing is installed · the breaks against purchasing's GET /bills/open recorded as at the period end (GL-08, GL-36)
  • open → open by accountant · when fixed-assets is installed · the breaks per asset class and ledger against fixed-assets' register (GL-39)
  • open → open by accountant · when the period is open · one journal per due approved template; twice posts once (GL-45)
  • open → open by accountant · when the period is open · one journal per active registration; twice posts once (GL-49)
  • open → open by accountant · when revaluation is on and a closing rate is in force on the period end for every currency held · per ledger, an unrealised gain or loss journal by the ledger's method, reversing next period (GL-09)
  • open → open by accountant · when revaluation is on; a closing rate for every open item's currency · per ledger, one journal of item lines on the control accounts, reversing next period (GL-48)
  • open → open by accountant · when the company has a partner company with intercompany lines · the pair's match result as at the period end (GL-52)
  • open → open by accountant · when the break is above tolerance and the accepter is not who posted the difference · needs reason · recorded beside the break; consolidation reads it
  • open → open by system · when document splitting is on for the company's year · one adjustment journal on the control accounts, reversing next period (GL-25)
  • open → closed by accountant · when readiness met · operational postings dated in it refused for the company; statements materialised (GL-21)
  • closed → closed by system · keyed (report, company, ledger, period); a second run changes nothing
  • closed → open by accountant · when the year is not closed; the reopener is not who closed it where the owner asks for it · needs reason · recorded; the materialised statements and the close sign-off marked stale

fiscal_year

open → closed

  • none → open by accountant · when the start month follows the company's previous year end (financial_year_end_month) · twelve periods opened for the company; the carry-forward from the previous year derived (GL-23)
  • open → open by system · when the previous year has postings · opening balances per ledger, account, profit centre, segment and partner company; P&L to retained earnings; re-derivation writes the same rows
  • open → closed by accountant · when every period of the year closed; no audit adjustment waiting; retained_earnings mapped · closed to adjustments; the carry-forward to the next year derived for every ledger; the next year opened if it is not; no closing journal

recurring_journal

proposed → approved → rejected → ended

  • none → proposed by accountant · when balanced; company, ledger and accounts valid; first and last period within open or future years · version 1, proposer recorded (email and sub)
  • proposed → approved by accountant · when the approver is not the proposer (email AND sub) where manual_journal_approval asks for it · runs from its first period
  • proposed → rejected by accountant · needs reason
  • approved → approved by accountant or system · when due in the period; the period open; not posted for it · a journal keyed derived_id('recurring', recurring_id, version, period_id), through the posting use case
  • approved → ended by accountant · needs reason · this version ends at the change; version + 1 is proposed and needs approval
  • approved → ended by accountant · needs reason · no period after the end posts; posted journals untouched

accrual

proposed → active → rejected → terminated → completed

  • none → proposed by accountant · when amount above zero and within NUMERIC(18,2); start period not after end; accounts valid in the company's chart · the schedule computed per period (straight-line or daily), the last period taking the remainder
  • proposed → active by accountant · when the approver is not the registrant (email AND sub) above manual_journal_threshold · released from its start period
  • proposed → rejected by accountant · needs reason
  • active → active by accountant or system · when the period open and in the schedule; not released for it · a journal keyed derived_id('accrual', accrual_id, period_id)
  • active → completed by system · when every period of the schedule released · released total equals the amount to the penny
  • active → terminated by accountant · when the termination period open · needs reason · the remainder released in the termination period; nothing after

allocation_cycle

draft → approved → retired

  • none → draft by controller · when every segment has senders, receivers and a rule; receivers valid; percentages total 100 where the rule is percentages · version recorded with its author (email and sub)
  • draft → approved by accountant · when the approver is not the author (email AND sub) where allocation_cycle_approval is on · runnable from its valid_from period
  • draft / approved → retired by accountant · needs reason · no new run; posted runs untouched; a change is a new cycle version

allocation_run

simulated → posted → reversed

  • none → simulated by controller · when the cycle approved; the period open; key figures recorded for every receiver the rules need · senders, receivers and amounts computed and shown with a digest of the sender balances; nothing posted
  • simulated → posted by controller or accountant · when the simulation is current (sender digest unchanged); no posted run for the cycle, period and ledger; the period open · one journal per segment keyed derived_id('allocation', cycle_id, period_id, ledger_id, run_no, segment); key figures used are frozen
  • posted → reversed by accountant · when the period open · needs reason · mirror journals of every segment; the key figures unfrozen; run_no + 1 may post

statement_version

draft → published → superseded

  • none → draft by accountant · nodes and account assignments (ranges, group accounts, debit/credit-dependent); kind balance_sheet_pl or cash_flow
  • draft → published by accountant · when fsv_complete · reports may run on it; it is never edited again
  • published → superseded by accountant · version_no + 1 drafted from it; reports already run name the old version

budget

draft → submitted → approved → superseded

  • none → draft by controller · when company, ledger and fiscal year exist · lines by account, profit centre, cost centre and period, typed or imported
  • draft → submitted by controller · when every amount within NUMERIC(18,2) · submitter recorded (email and sub)
  • submitted → approved by accountant · when the approver is not the submitter (email AND sub) · frozen; plan/actual reads it
  • submitted → draft by accountant · needs reason
  • approved → superseded by controller · needs reason · version + 1 drafted from it

close_run

in_progress → ready → signed

  • none → in_progress by accountant · when a task list exists for the company and the kind (month or year end) · tasks instantiated with owner, due business day and dependencies
  • in_progress → in_progress by bookkeeper or controller or accountant · when the tasks it depends on are done · who, when and the note or evidence key recorded
  • in_progress → in_progress by accountant · needs reason
  • in_progress → ready by system · when every task done or not applicable; every system task's gate met on read · the trial balance digest taken
  • ready → signed by accountant · when the signer is not the run's starter nor a task's completer (email AND sub); the digest unchanged · who, when and the digest recorded; close_period may proceed
  • ready / signed → in_progress by system · when a posting landed in the period after the digest · the run shows what changed and asks for a new sign-off

migration_run

loaded → reconciled → signed → discarded

  • none → loaded by system · when the doors decided; business-partner and tax mapped every partner and tax the lines use · companies, accounts, account map, fiscal years, periods (closed up to Odoo's lock date), rates, recurring entries, deferrals and posted journals written read-only, keyed on the Odoo record; a re-run changes nothing
  • loaded → reconciled by system · every migration.odoo.reconcile check computed on both sides, with the difference
  • reconciled → reconciled by accountant · when the check differs and may be explained · needs reason · the explanation recorded beside the check
  • loaded / reconciled → loaded by system · when not signed · the same keys; explanations on unchanged checks kept
  • reconciled → signed by owner · when every check equal, or explained where allowed · who, when and checksums recorded; postings from the composed modules accepted from the day after cut-over
  • loaded / reconciled → discarded by owner · needs reason · the run's rows removed; nothing was posted on them

What it keeps

ThingMeaningIdentified byShared?
companya legal entity whose books are kept here (SAP's company code)company_code VARCHAR (shared.yaml keys.company_code): 1 to 4 upper-case letters or digits, the customer's own (UK01), fixed once a journal uses it; a migrated one is named at the door from res.companySHARED, sole writer; consolidation, fixed-assets and every posting module read it through GET /companies
charta chart of accounts, operational (companies post to it) or group (consolidation reports in it)chart_id VARCHAR ("MAIN", "GROUP")SHARED, sole writer
accounta bucket the business reports on (a bank account, a revenue line, a tax liability)account_id BIGINT = derived_id("account", code) in the first operational chart (v2's ids stand), derived_id("account", chart_id, code) in any other chart; derived_id("odoo:<db>:account.account:<id>") for a migrated one (shared.yaml keys.account_id). code is the customer's own number (VARCHAR, unique within its chart), fixed once a journal uses itSHARED, read through gl's routes; this module is the sole writer
account edgethe account tree, as a graph walked to any depthparent_idchild_idmodule-owned; written in the same use case as the account
group account mapwhich group account an operational account reports under, datedaccount_idvalid_fromSHARED, sole writer; read by consolidation through GET /group-reporting/balances, never directly
alt accounta company's alternative (country) number for an account, for its statutory filescompany_codeaccount_idvalid_frommodule-owned config
ledgera set of books in one accounting principle; one leads, others run in parallelledger_id VARCHAR ("IFRS", "LOCAL"; customer's own, 2 to 8 upper-case letters or digits)SHARED, sole writer; fixed-assets maps its depreciation areas to ledger_id; consolidation names the ledger it collects
company ledgerwhich ledgers a company keeps, from which fiscal yearcompany_codeledger_idmodule-owned config
account mapwhere a purpose posts, dated, per chartchart_idpurposequalifiervalid_frommodule-owned config; read by every posting
journalone balanced accounting entry of one companyjournal_id BIGINT = derived_id(source_document, event) for a source posting common to all ledgers, derived_id(source_document, event, ledger_id) for a ledger-specific one (the caller may send it; gl checks it), derived_id("manual", uuid) for a manual one, derived_id(ic_document_id, company_code) for each company of a cross-company document, derived_id(journal_id, "reversal") for a reversal, and the run keys of recurring, accrual, allocation, revaluation and re-split journalsmodule-owned
journal lineone side of an entry against one account, as it was sentjournal_idline_nomodule-owned
split linethe universal line (SAP ACDOCA) every balance and report is derived fromjournal_idline_nosplit_nomodule-owned (derived at posting, never edited)
balancethe balance of each account per company, ledger, period and dimension, DERIVED, never typed and never incrementedcompany_codeledger_idaccount_idperiod_idprofit_centresegmentpartner_companymodule-owned (derived)
carry forwarda year's opening balance, derived from the previous year's closing (SAP balance carry-forward)company_codeledger_idfiscal_yearaccount_idprofit_centresegmentpartner_companymodule-owned (derived)
fiscal yeara company's financial year and whether it is closed to adjustmentscompany_codefiscal_yearSHARED, sole writer
perioda month of a company, and whether it is still open to postingscompany_codeperiod_idSHARED, sole writer; every module's postings are gated by it
period eventa close or a reopen, with who and why (append only)event_idmodule-owned
number seriesthe journal numbers of a company's book and yearcompany_codebookfiscal_yearentry_nomodule-owned (state)
fx ratethe rate used to restate a currency on a date, by rate typefrom_ccyto_ccyrate_typerate_dateSHARED, sole writer; tax, invoicing, payments and consolidation read it through GET /fx-rates/{currency}
fx reval runone revaluation of a company and ledger at a key date, of balances or of open itemsrun_id = "<company_code>:<ledger_id>:<key_date>:<balances | open_items>"module-owned
fx reval itemone revalued balance or open item and its gain or lossrun_idaccount_idcurrencydocumentmodule-owned
reconciliationa comparison of a control account against the module owning its open items (payments, purchasing, fixed-assets), and the breaksrecon_id = "<company_code>:<control_account_id>:<as_at>"module-owned
ic documentone cross-company entry and the per-company journals it producedic_document_id BIGINT = derived_id("ic", uuid)module-owned
ic matchthe intercompany match of a pair of companies at a date, and its breaksmatch_id = "<company_code>:<partner_company>:<as_at>"module-owned; consolidation reads it through GET /intercompany/reconciliation
segmenta reportable segment (IFRS 8)segment VARCHAR (finance's code)SHARED, sole writer
profit centrean area of responsibility whose result (and, with splitting, balance sheet) is reportedprofit_centre VARCHAR (finance's code)SHARED, sole writer; fixed-assets and purchasing may store the code
profit centre segmentwhich segment a profit centre belongs to, datedprofit_centrevalid_frommodule-owned config
cost centrea department, site or project a line can be reported by (shared.yaml keys.cost_centre)cost_centre (VARCHAR, finance's code)SHARED, sole writer; hr, purchasing and fixed-assets store the code
cost centre assignmentwhich profit centre a cost centre belongs to, datedcost_centrevalid_frommodule-owned config
recurring journalan approved template posted every period it is due[recurring_id, version]; recurring_id is the customer's code (RENT-LON)module-owned
recurring postingwhat a template posted (or skipped) in a periodrecurring_idversionperiod_idmodule-owned
accruala registration releasing an amount over periods (prepaid, deferred revenue, accrued expense or income)[company_code, accrual_code]; accrual_code is the customer's (INS-2026)module-owned
accrual releaseone period's release of an accrualcompany_codeaccrual_codeperiod_idmodule-owned
allocation cyclea set of ordered rules moving costs from senders to receivers[cycle_id, version]; cycle_id is the customer's code (OVH-2026)module-owned config (moves through its workflow, not edited)
allocation runone simulation or posting of a cycle for a period and ledgerrun_id = "<cycle_id>:<version>:<period_id>:<ledger_id>:<run_no>"module-owned
key figure valuea statistical key figure for a receiver in a period (headcount, floor space)key_figureperiod_idreceivermodule-owned
statement versiona financial statement version (or cash-flow version), its nodes and which accounts make eachfsv_idversion_nomodule-owned config
statement nodea line of a statement version, in its treefsv_idversion_nonode_idmodule-owned config
statement assignmentwhich accounts land on which node, and when (debit or credit balance)fsv_idversion_nofrom_codeto_codemodule-owned config
budgeta plan for a company, ledger and year, in versions[budget_id, version]; budget_id is the customer's code (B2026)module-owned
budget lineone planned amountbudget_idversionaccount_idprofit_centrecost_centreperiod_idmodule-owned
close task lista company's checklist for a month end or a year endtask_list_idtask_idmodule-owned config
close runone close of a company's period and its sign-offrun_id = "<company_code>:<period_id>:<month | year>"module-owned
close taskone task of a close runrun_idtask_idmodule-owned
statementa materialised trial balance, profit and loss or balance sheet for a period[report, company_code, ledger_id, period_id, account_id]module-owned (derived)
journal auditwhat happened to a journal and when (append only)audit_idmodule-owned
master auditevery change to master data and settings, with before and after (append only; GoBD)audit_idmodule-owned
audit exporta statutory file produced from the ledger (FEC, SAF-T, GoBD data access)export_id = "<kind>:<company_code>:<fiscal_year>:<produced_at>"module-owned
company accesswhich companies a person may see and post in, dated (an owner control)principal_subcompany_codevalid_frommodule-owned config
ai findingan AI finding on a proposed journal and the person's decisionfinding_idmodule-owned (append only)
settingsdated settings and owner controlssetting_keyscopevalid_frommodule-owned config
migration runone Odoo load, its checks and its signaturerun_id = "odoo:<db>:<cutover_date>"module-owned
migration map(odoo db, odoo model, odoo id) -> our natural key (shared.yaml conventions.odoo_migration)odoo_dbodoo_modelodoo_idmodule-owned; read by later bricks through GET /migration-map/{db}/{model}

The companies, ledgers, charts (operational and group), the account map, the period lock, the profit centres and segments, and the FX rates are shared: every module that posts money reads them through gl's routes and none of them writes them. A module keeping its own copy of any of them is how two reports of the same month stop agreeing.

What runs on its own

StoryWhenWhat
GL-20after every postingre-derive the touched accounts' balances for the journal's period
GL-21after a close, and on requestmaterialise the trial balance and statements
GL-22inside every postingresolve dimensions and split the lines into universal lines
GL-23when a year closes or opens, and after a posting into a prior yearderive the carry-forward per company and ledger
GL-24when a period opens, and after a posting that asks for a reversalpost every pending reversal whose date is in an open period
GL-25at period end, as a close task (no scheduler; the close run or the accountant starts it)re-split receivables and payables by profit centre from their open items

Questions that shape your version

Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.

  1. Do you keep your books here, or in Xero/QuickBooks with this feeding them?
  2. Who is allowed to close a month, and who can reopen one?
  3. Should manual journals be approved by a second person, and above what amount?
    owner managed
    above a threshold the owner sets
    audited or investor reporting
    always
  4. What does your chart of accounts look like today?
    most smes
    their accountant's standard template, lightly edited; bring it across as-is
    warning
    a chart redesigned during implementation makes every prior-year comparison wrong
  5. When does your financial year end?
  6. Do you hold balances in more than one currency, and where do you take rates from?

    Standard IAS 21: monetary items in a foreign currency are translated at the closing rate; exchange differences go to profit or loss. HMRC VAT Notice 700 accepts the period rates it publishes for a VAT total in sterling.

  7. Must journal entries be numbered without gaps?

    Standard France: the FEC (Livre des procédures fiscales art. L47 A) requires sequential, uninterrupted entry numbering; the UK has no such rule for journals (only for invoices, VAT Notice 700 para 16.3.1).

  8. Do you report by department, site or project as well as by account?
    single site services
    account only
    multi site or project work
    one dimension (site or project), rarely more
    warning
    adding a dimension after the first posting means restating history
  9. Is your month-end a real close, or just a cut-off you report from?

    Standard IAS 1 governs what a set of financial statements must contain; it does not require a monthly close. Monthly is an operating choice; the obligation is the reporting period itself.

    audited or investor reporting
    a real monthly close with a lock
    owner managed
    a cut-off they report from, closed properly at year end
  10. Which accounts do receivables, revenue, each tax code, each bank account, bad debt, FX differences and retained earnings post to?
  11. How many legal entities do you have, and do they trade with each other?
    single company
    one default company; nothing intercompany shows
    small group
    two to ten companies on one chart, monthly recharges, matched before each close
    warning
    a second company added after go-live starts on a fiscal year's first day; its history is a migration
  12. Do you report under more than one set of accounting rules (IFRS for the group, local GAAP for the statutory accounts)?

    Standard IFRS as adopted (UK-adopted IFRS; EU Regulation 1606/2002 for listed groups' consolidated accounts); FRS 102 in the UK; HGB sections 238 ff. in Germany, whose section 256a limits unrealised FX gains on items over a year.

    standalone sme
    one ledger in local GAAP
    group reporting ifrs
    IFRS leading, local GAAP non-leading per company
  13. Do you need a balance sheet and result per business line or site, not only a P&L?

    Standard IFRS 8 Operating Segments, for entities whose debt or equity is publicly traded

    most smes
    profit centres for the P&L, splitting off
    segment reporting
    splitting on from a fiscal year's first day
    warning
    splitting switched on mid-year cannot split what was already posted; start it with a year
  14. How do you share overheads (IT, rent, management) across departments?
    services
    assessment by headcount monthly
    retail or manufacturing
    distribution of rent by floor space, assessment of IT by users
  15. Which recurring charges and prepayments do you post every month?
  16. Do you want a month-end checklist with a sign-off by a second person?
    owner managed
    off; readiness gates on the close are enough
    audited or investor reporting
    on, signed by the finance manager
  17. Which tax-audit files must you produce (FEC, SAF-T, GoBD data access)?

    Standard France: Livre des procédures fiscales art. L47 A and art. A47 A-1 (the FEC). Germany: Abgabenordnung section 147 and the GoBD (BMF letter of 28.11.2019). SAF-T: the OECD Standard Audit File for Tax 2.0, as adopted by Norway, Portugal, Poland and others. Retention: 10 years in France and Germany.

  18. Do you budget, and by what (account, department, month)?
  19. Who may see which company's books?

What you can change yourself

These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.

Where the platform limits what we can promise

There is no enforced cross-table constraint, so the period lock is an application control. it holds only because one use case is the sole writer of journals and writes the period row with its lines; every posting, including the other modules', goes through it
No read-your-writes inside an open transaction. post the lines, commit, then re-derive balances in a second transaction with SUM()
ON CONFLICT DO UPDATE SET accepts only EXCLUDED.<col>. balance and statement rows upsert with every value in VALUES; journal rows are plain INSERTs (a conflict IS the replay)
A zero DECIMAL renders as JSON 0, not "0.00". assert that the trial balance nets to zero exactly, not that it prints a particular string
The hash chain needs one predecessor per company: two postings of one company racing for the same chain_seq. chain_seq is claimed with a plain INSERT like a journal number (the loser retries with the next, re-reading prev_hash after the commit); a 60-wide storm serialises per company on that claim, which is the cost of tamper evidence
graph_khop() takes an integer-literal start node and resolves only as a top-level SELECT. the rollup runs the walk as its own query, then joins balances in a second one

For builders

Code

Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.

Known gaps in the reference

© 2026 DODILHomeDocsConsole