aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/PROTOCOL.md5
-rw-r--r--docs/STATE.md7
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index 75ae963..0b69d53 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -454,8 +454,9 @@ All reports are pure reads, respect locks, and return JSON rows. Amounts are
öre. IB (ingående balans) for a balance account (asset, liability, equity) is
all earlier history, including earlier years' `IB` vouchers, plus this
year's `IB` vouchers; a P&L account (revenue, expense) restarts at zero at
-every fiscal-year start, so its IB is only this year's `IB` vouchers and,
-with a narrowed `from`, the year's movements before it.
+every fiscal-year start, so its IB is only, with a narrowed `from`, the
+year's movements before it; `IB` rows on P&L accounts (the balancing side of
+an opening-balance adjustment) are ignored.
`report.income_statement` (and therefore `sru.export` and the TUI
resultatrapport) ignores the source system's `"Stäng ..."` closing vouchers
in SIE-imported years (`source:"sie_import"`), where the P&L accounts are
diff --git a/docs/STATE.md b/docs/STATE.md
index 5e9dc04..754bd9b 100644
--- a/docs/STATE.md
+++ b/docs/STATE.md
@@ -100,6 +100,13 @@ unit tests and the docs consistency check.
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
rules themselves were fine. `test_core` has `vat_settlement`.
+- **IB rows on P&L accounts (2026-09-22, not deployed)**: after `v0.1.65`,
+ Makandra's 2026/27 `IB 1` (an agent's delta from 2026-09-18, computed
+ against the old IB rule) showed its balancing P&L rows as P&L opening
+ balances and double-counted aktiekapital (2081 −50 000, 1940 25 000).
+ Reports now ignore `IB` rows on P&L accounts; the aktiekapital double
+ needs the IB delta 2081 D / 1940 K 25 000 in 2026/27 (dry-run ok, awaiting
+ the owner). `bokfctl --dry-run` sets the request's `dry_run`.
- **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)