From 0ec59a0dfce8d350f26783ccc2456e5cb68c37a5 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Fri, 18 Sep 2026 21:07:38 +0200 Subject: reports: huvudbok and verifikationslista; fiscal_year.reopen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit report.general_ledger lists every account with activity or IB, its postings in date order with a running saldo, and Omslutning/Utgående saldo; accounts?/from?/to? narrow it. report.voucher_list lists the year's vouchers with rows and totals, with an optional series filter. fiscal_year.reopen undoes a close (owner-only, confirm:true, audited) so the Räkenskapsår screen can toggle the status. --- docs/STATE.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'docs/STATE.md') diff --git a/docs/STATE.md b/docs/STATE.md index 0f8a915..b158de8 100644 --- a/docs/STATE.md +++ b/docs/STATE.md @@ -100,8 +100,9 @@ server/protocol/ledger only. 3. K2 årsredovisning document + SRU files (INK2/INK2R/INK2S). 4. `audit.verify` must also verify the **voucher** hash chain (today only the audit chain is verified). -5. `report.general_ledger` and `report.voucher_list` (documented, not - implemented). +5. ~~`report.general_ledger` and `report.voucher_list`~~ implemented + (Huvudbok, Verifikationslista) with Kapitas-style TUI tables; the ledger + API supports `accounts`/`from`/`to`, the list an optional `series`. 6. `describe` argument schemas (currently name/summary/permission only). 7. Pre-migration `VACUUM INTO` snapshot (promised in SCHEMA.md, not built). 8. ~~Docker image + compose (multi-arch amd64/arm64, GHCR) and systemd unit.~~ @@ -134,11 +135,12 @@ server/protocol/ledger only. (schema v1, old binary) — recreate or migrate it with the current build if it is still wanted. - TUI smoke tests: drive over a pty with `script -qec`; function-key escape - sequences are timing-sensitive there (not an app bug). `Ctrl+N/C/F` are - single bytes and reliable. Always wrap the run in - `scripts/tui-sandbox.sh -- ./build/bokftui ...`: it isolates - `XDG_CONFIG_HOME`/`XDG_CACHE_HOME` so a test can never overwrite the real - `~/.config/bokf/tui.conf` or `~/.cache/bokf/tui.log`. + sequences are timing-sensitive there (not an app bug). Arrows arrive as + application-mode sequences (`ESC O B` for Down), not `ESC [ B`, because + curses enables the keypad. `Ctrl+N/C/F` are single bytes and reliable. + Always wrap the run in `scripts/tui-sandbox.sh -- ./build/bokftui ...`: it + isolates `XDG_CONFIG_HOME`/`XDG_CACHE_HOME` so a test can never overwrite + the real `~/.config/bokf/tui.conf` or `~/.cache/bokf/tui.log`. ## Known caveats -- cgit v1.3