From 2a98cce8434f7ea27f777d9e6422a1eb92ba8be7 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Thu, 17 Sep 2026 23:02:41 +0200 Subject: sie: import CRLF, #RAR 0, zero rows; skip #IB with prior history - tokenizer treats CR as whitespace; closing brace matches with CRLF - only #RAR with year indicator 0 selects the fiscal year - zero-amount #TRANS rows are dropped instead of violating the schema - #IB becomes an IB voucher only when the year has no earlier history --- docs/PROTOCOL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/PROTOCOL.md') diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index 25c9250..f3d7cac 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -374,7 +374,7 @@ All reports are pure reads, respect locks, and return JSON rows. Amounts are | Command | Args | Result | |---|---|---| | `sie.export` | `fiscal_year`, `inline?` | by default writes `/_.se` and returns `path`, `sha256`, `size`; `inline:true` also returns `content_base64` | -| `sie.import` | `content_base64` or `path`, `dry_run?` | creates missing accounts and posts #VER as `source:"sie_import"`; only into an empty org fiscal year | +| `sie.import` | `content_base64` or `path`, `dry_run?` | one file per call; creates missing accounts and posts #VER as `source:"sie_import"`; only into an empty org fiscal year; `#IB` becomes an `IB` voucher when the year has no earlier history, otherwise the earlier vouchers carry the balances | SIE 4 files are written in CP437 with PC8 format, `#SIETYP 4`, `#FNR`, `#ORGNR`, `#KONTO`, `#IB`, `#UB`, `#RES`, `#VER`, `#TRANS`. Import is the migration path -- cgit v1.3