summaryrefslogtreecommitdiff
path: root/docs/PROTOCOL.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-22 19:53:19 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-22 19:55:47 +0200
commit3f07edf64f74cab68cb379e49841fdf6b24674e9 (patch)
tree125a350247d421b3dbac11d56c25bdf189af2656 /docs/PROTOCOL.md
parent6e0e96cfc74b129950002456e21d401dd07e10fd (diff)
parente1a24f6250f5e498e524ce14a5acbed5fc5c2a91 (diff)
downloadbokf-3f07edf64f74cab68cb379e49841fdf6b24674e9.tar.gz
bokf-3f07edf64f74cab68cb379e49841fdf6b24674e9.zip
Merge eff/imported-closings; skip only SIE-imported Stäng closings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/PROTOCOL.md')
-rw-r--r--docs/PROTOCOL.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index d50f5ee..a28ff21 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -455,7 +455,13 @@ All reports are pure reads, respect locks, and return JSON rows. Amounts are
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. `report.general_ledger` (huvudbok) returns account blocks:
+with a narrowed `from`, the year's movements before it.
+`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
+closed straight to 2099 and would otherwise net to zero; the TUI
+årsredovisning uses the same rule. `report.general_ledger` (huvudbok)
+returns account blocks:
`{"fiscal_year","from","to","last_voucher":{...},"accounts":[{"account",
"name","ib_ore","debit_ore","credit_ore","ub_ore","rows":[{"series",
"number","date","description","row_description","debit_ore","credit_ore",