aboutsummaryrefslogtreecommitdiff
path: root/docs/PROTOCOL.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-22 19:52:19 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-22 19:52:19 +0200
commite1a24f6250f5e498e524ce14a5acbed5fc5c2a91 (patch)
tree6583ad2bf0e22bf83e37dc135ce663cb97a104af /docs/PROTOCOL.md
parent4dee87e83257c81413b29ccb33989e4df109a61c (diff)
downloadbokf-e1a24f6250f5e498e524ce14a5acbed5fc5c2a91.tar.gz
bokf-e1a24f6250f5e498e524ce14a5acbed5fc5c2a91.zip
reports: income statement skips 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.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index 081eb6a..7d7a5e2 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -451,7 +451,11 @@ linked to that voucher and each item carries that `voucher_id`.
| `sru.export` | `fiscal_year`, `adjustments?`, `submitter?`, `assisted?`, `audited?`, `ignore_unmapped?` | `INFO.SRU` + `BLANKETTER.SRU` (ISO-8859-1, base64) |
All reports are pure reads, respect locks, and return JSON rows. Amounts are
-öre. `report.general_ledger` (huvudbok) returns account blocks:
+öre. `report.income_statement` (and therefore `sru.export` and the TUI
+resultatrapport) ignores the source system's `"Stäng ..."` closing vouchers
+in imported history years, where the P&L accounts are closed straight to
+2099 and would otherwise net to zero; the K2 report 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",