aboutsummaryrefslogtreecommitdiff
path: root/docs/STATE.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/STATE.md')
-rw-r--r--docs/STATE.md21
1 files changed, 10 insertions, 11 deletions
diff --git a/docs/STATE.md b/docs/STATE.md
index 639d594..5e9dc04 100644
--- a/docs/STATE.md
+++ b/docs/STATE.md
@@ -17,7 +17,7 @@ unit tests and the docs consistency check.
- **Deklaration 2025/2026 (org 2, 2026-09-22)**: the imported year is closed
by the source's `Stäng intäktskonton/kostnadskonton`, so the resultatrapport
(and the INK2/SRU derived from it) showed 0. `report.income_statement` now
- skips those vouchers (merged to `main`, not deployed), which gives
+ skips those vouchers (deployed in `v0.1.65`), which gives
**241 817,48 kr** resultat efter skatt för 2025/2026. In the TUI the
"Bokfört resultat" section is absent for such years (the close goes straight
to 2099). Two **data drifts** to settle with the accountant before filing:
@@ -25,10 +25,9 @@ unit tests and the docs consistency check.
year's P&L (its tax was never booked as an expense), so the derived balance
sheet does not balance by that amount; and 2099 is 1,07 kr off the P&L
result. Locked years stay locked — a correction belongs in the open year
- (2026/2027). The owner runs Bokslutshubben → Inkomstdeklaration after the
- daemon is redeployed with the report fix.
+ (2026/2027). The owner can now run Bokslutshubben → Inkomstdeklaration.
-- **Deployed**: `v0.1.64`, healthy on `nas` (Alpine runtime, static aarch64
+- **Deployed**: `v0.1.65`, healthy on `nas` (Alpine runtime, static aarch64
binaries cross-compiled on this machine — ~20 s, the host only assembles
the image; image 33.7 MB, no `libssl3`). `v0.1.55` brought the payroll
server waves (schema v11: employees, tax tables, lönebesked) and the
@@ -49,7 +48,9 @@ unit tests and the docs consistency check.
`payment_voucher_id`); `v0.1.63` prints the organization name in the
invoice and lönebesked headers and adds the shared document colour setting
`document_header_color`; `v0.1.64` is the TUI interaction-model spec (docs
- only, no runtime change). The live database migrated v9 → v11 on the v0.1.55
+ only, no runtime change); `v0.1.65` carries earlier IB vouchers forward,
+ restarts P&L at each year, skips imported `Stäng` closings in the
+ income statement and the momsomföring in the VAT report. The live database migrated v9 → v11 on the v0.1.55
startup and v11 → v12 on the v0.1.62 startup, each with the automatic
pre-migration snapshot in `var/db/backup/`. `main` and the tags are pushed
to `nas`.
@@ -76,9 +77,7 @@ unit tests and the docs consistency check.
implemented** (`clients/drafts.[ch]`, `tui_action_menu()`,
`tui_action_hint()`, `<UTKAST>`, `Spara` row, F2 menu, delete draft) with
unit tests, the pty scenarios `customer-draft`/`customer-draft-save` and a
- green `make gate`. It is merged to **local** `main` (`07f5b14`, one commit
- ahead of `origin/main`) and `build/bokftui` is rebuilt, but it is not
- pushed and not deployed — the daemon is unchanged, so no deploy is needed.
+ green `make gate`. It is in `main` (`07f5b14`), pushed and part of `v0.1.65`.
**Next session**: get the human's Ctrl+R test feedback (Bolaget → Kunder:
Ctrl+N, type, Esc, F2, Spara, Radera utkast) and then continue the
rollout per backlog item 17: the other registers, explicit `Spara` in the
@@ -86,7 +85,7 @@ unit tests and the docs consistency check.
`TUI-GUIDELINES.md`: drafts of encrypted fields (an employee's
personnummer) and `Enter` on action rows. Spec in `TUI-GUIDELINES.md`
"Interaction model"; decisions in `DECISIONS.md` #28.
-- **IB carry-forward (2026-09-22, merged to `main`, not deployed)**:
+- **IB carry-forward (2026-09-22, deployed in `v0.1.65`)**:
reports and `sie.export` carry earlier years' `IB` vouchers into the
opening balance (Makandra's 2021 IB voucher held aktiekapital 2081/1940,
which vanished from every later year) and restart P&L accounts at each
@@ -96,7 +95,7 @@ unit tests and the docs consistency check.
accounts' IB sums to that instead of 0). Merged together with
`eff/imported-closings`, whose "Stäng" skip now applies only to
`sie_import` vouchers. `test_core` has `ib_carry` and `imported_closings`.
-- **Momsrapport (2026-09-22, merged to `main`, not deployed)**:
+- **Momsrapport (2026-09-22, deployed in `v0.1.65`)**:
`report.vat` (and `report.vat_eskd`) skips the momsomföring (vouchers with
a 2650 row) and SIE-imported `Stäng` closings. Makandra's 2025/26 report
was all zeros because V107 (Momsdeklaration) and V109 were counted; the
@@ -180,7 +179,7 @@ Original entries for the struck items are in `docs/DECISIONS.md`.
## Environment / how to run
-- **Deployed**: `scripts/deploy.sh` (latest `v0.1.64`, healthy on nas).
+- **Deployed**: `scripts/deploy.sh` (latest `v0.1.65`, healthy on nas).
Live daemon `tls:bokf.makandra.eu:8788`, token
`~/.config/bokf/migration-token` (scopes `read,write`; owner-only actions
like closing years must be done by the human in the TUI). Git remote