aboutsummaryrefslogtreecommitdiff
path: root/docs/STATE.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/STATE.md')
-rw-r--r--docs/STATE.md28
1 files changed, 21 insertions, 7 deletions
diff --git a/docs/STATE.md b/docs/STATE.md
index 29fbada..db68efd 100644
--- a/docs/STATE.md
+++ b/docs/STATE.md
@@ -14,6 +14,20 @@ unit tests and the docs consistency check.
## Resume here (2026-09-22)
+- **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
+ **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:
+ the imported FY 2022/2023 result transfer is **17 857,63 kr** short of that
+ 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.
+
- **Deployed**: `v0.1.64`, 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
@@ -72,16 +86,16 @@ 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, branch `eff/ib-carry`, not deployed)**:
- reports and `sie.export` now carry earlier years' `IB` vouchers into the
+- **IB carry-forward (2026-09-22, merged to `main`, not deployed)**:
+ 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
fiscal-year start (they used to accumulate since 2021). SIE writes
- `#IB`/`#UB` only for balance accounts and `#RES` only for P&L. With it,
- Makandra's 2025/26 opening balance shows the real 17 857,63 kr gap from
- 2022/23 (result transfer short of the P&L) instead of hiding it.
- `test_core` has `ib_carry`. Touches the same `balance_query` SQL as
- `eff/imported-closings` — expect a small textual conflict when merging.
+ `#IB`/`#UB` only for balance accounts and `#RES` only for P&L. Makandra's
+ opening balances now show the 17 857,63 kr 2022/23 gap openly (balance
+ 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`.
- **Mail configuration**: Makandra AB (org 2) has **no** `smtp_*` settings
in bokf, so `invoice.send` there is `SMTP_NOT_CONFIGURED` (fine if
invoices are sent elsewhere — set them up when wanted). Mock AB (org 1)