summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 15:25:27 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 15:25:27 +0200
commit1e2ef668ff1274273ba3433421366ef39ab0af01 (patch)
treebfa9620a85b2def7ac1ca6d7299ac0777d68d00a /docs
parent2a69643bf580514712276324fb8c4ea9a512494c (diff)
downloadbokf-1e2ef668ff1274273ba3433421366ef39ab0af01.tar.gz
bokf-1e2ef668ff1274273ba3433421366ef39ab0af01.zip
invoice: allow setting the bankgiro, document wave 1
Diffstat (limited to 'docs')
-rw-r--r--docs/INVOICING.md3
-rw-r--r--docs/STATE.md10
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/INVOICING.md b/docs/INVOICING.md
index f509997..7c6ce2e 100644
--- a/docs/INVOICING.md
+++ b/docs/INVOICING.md
@@ -149,7 +149,8 @@ form (draft in the TUI)
- Default bank/receivable account `1510` (setting `invoice_receivable_account`).
- Revenue account per line, default from setting `invoice_revenue_account`
- (`3001`), overridable per row.
+ (`3001`), overridable per row. The seller's payment reference comes from
+ setting `invoice_bankgiro` (e.g. `5750-4144`).
- VAT per row via `vat_code`: `25`, `12`, `6`, `0`, `rc` (omvänd
skattskyldighet, no VAT on the invoice, `Momsfritt` in the summary) and
`eu` (EU sale, `Momsfritt`).
diff --git a/docs/STATE.md b/docs/STATE.md
index 428bb79..8c6eaa3 100644
--- a/docs/STATE.md
+++ b/docs/STATE.md
@@ -148,6 +148,16 @@ check.
real PDF without consuming the number, and SMTP sending with the
password encrypted in the DB (AES-256-GCM, `BOKFD_SECRET_KEY`).
Implementation waves: schema v9 + PDF, SMTP, TUI (Fakturering).
+ **Wave 1 done 2026-09-20**: schema v9 (`customers`, `invoice_sequence`,
+ `invoices`, `invoice_rows`, widened `vouchers.source` with a table
+ rebuild), the PDF renderer (`src/invoice.c`, 2.2 % raw pixel diff vs the
+ Google Sheets original — all structure exact; only Arial-vs-Helvetica
+ glyphs differ), and `customer.*`, `invoice.sequence_get/set`,
+ `invoice.preview/issue/list/get/pdf`. Issue is atomic: number + PDF
+ attachment + voucher (D 1510/K 3xxx+26xx, `source:"invoice"`) + links.
+ Settings `invoice_receivable_account`, `invoice_revenue_account`,
+ `invoice_bankgiro`. **Open detail: invoice 1 (Andrabygg) carries a Swish
+ QR image — decide whether the generator should support one.**
## Pending decisions