Reconciliation
{{ saveLabel }}
{{ errorMsg }}
The ledger data on screen is for a different account or period end. Press Pull ledger data to refresh it.
{{ openingBalanceOk ? '✓' : '⚠' }}
Opening balances agree. The ledger balance immediately before {{ periodStart }} is {{ fmtMoney(ledgerOpeningBalance) }}, matching the statement's starting balance.
Opening balances don't match. The ledger balance immediately before {{ periodStart }} is {{ fmtMoney(ledgerOpeningBalance) }}, but the statement start balance you entered is {{ fmtMoney(stmtStartBalance) }}. Reconcile the prior period first (or fix the figure above). This reconciliation won't be reliable until both starting points agree.
Raw pulled data (debug)
Selected account
{{ JSON.stringify(selectedAccount, null, 2) }}
Raw transactions response (first 3 as-is)
{{ JSON.stringify(Array.isArray(lastRaw) ? lastRaw.slice(0, 3) : lastRaw, null, 2) }}
Normalized ledger lines ({{ ledgerLines.length }}, first 20)
{{ JSON.stringify(ledgerLines.slice(0, 20).map(l => Object.assign({}, l, { raw: undefined })), null, 2) }}
Bank statement input
{{ importMsg.text }}
{{ d }}
Date Description Direction Amount
No rows yet. Add one below or switch to Import CSV.
Bank statement ({{ periodBankEntries.length }})
{{ unmatchedBankEntries.length }} unmatched
Date Description Amount Balance
{{ b.date }} {{ b.description }} matched {{ b.direction === 'inflow' ? '+' : '−' }}{{ fmtMoney(b.amount) }} {{ fmtMoney(b.runningBalance) }}
No bank statement rows in this period yet. Add some above.
Ledger ({{ periodLedgerLines.length }})
{{ unmatchedLedgerCount }} unmatched
Date Description Amount Balance
{{ l.dateStr }} {{ l.description }} matched {{ l.isReversal ? 'reversal' : 'reversed' }} {{ l.signedAmount >= 0 ? '+' : '−' }}{{ fmtMoney(Math.abs(l.signedAmount)) }} {{ fmtMoney(l.runningBalance) }}
Pull ledger data to see transactions here.
Selected bank: {{ fmtMoney(selectedBankTotal) }} ({{ selectedBankIds.size }})
Selected ledger: {{ fmtMoney(selectedLedgerTotal) }} ({{ selectedLedgerIds.size }})
{{ selectionOk ? 'Totals match' : 'Off by ' + fmtMoney(selectionDiff) }}
Statement end balance{{ fmtMoney(stmtEndBalance) }}
Ledger balance @ period end{{ ledgerLoaded ? fmtMoney(ledgerBalanceAtPeriodEnd) : '–' }}
Unaccounted for {{ diffLabel }} pull ledger data
Imported rows add up to {{ fmtMoney(computedEndBalance) }}, {{ fmtMoney(endMismatch) }} different from your end balance. Some rows may be missing.
■ {{ matchGroups.length }} matched group{{ matchGroups.length === 1 ? '' : 's' }} ■ {{ unmatchedBankEntries.length }} bank-only ■ {{ unmatchedLedgerCount }} ledger-only