aboutsummaryrefslogtreecommitdiff
path: root/docs/STATE.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 21:07:38 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 21:07:38 +0200
commit0ec59a0dfce8d350f26783ccc2456e5cb68c37a5 (patch)
tree69a9764e8d75df8d33aebe1b5a18e95909e4f9a4 /docs/STATE.md
parenta5d3ddf6d512bc459cfa450c6b449c2e7a245373 (diff)
downloadbokf-0ec59a0dfce8d350f26783ccc2456e5cb68c37a5.tar.gz
bokf-0ec59a0dfce8d350f26783ccc2456e5cb68c37a5.zip
reports: huvudbok and verifikationslista; fiscal_year.reopen
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.
Diffstat (limited to 'docs/STATE.md')
-rw-r--r--docs/STATE.md16
1 files changed, 9 insertions, 7 deletions
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