From 9abb72570954b01e5a2a402dbfa29cc33afdf321 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sun, 20 Sep 2026 14:41:23 +0200 Subject: invoicing: design chapter with layout, numbering and SMTP --- docs/STATE.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/STATE.md') diff --git a/docs/STATE.md b/docs/STATE.md index 8ba7ba6..97d0e8d 100644 --- a/docs/STATE.md +++ b/docs/STATE.md @@ -135,6 +135,19 @@ check. voucher and stay in the list. Later: `bank_rule.*` pattern suggestions and "skapa verifikat från transaktion". TUI screen **Bankavstämning** under Bokföring. +20. **Menu IA (2026-09-20)**: one top-level section per workflow domain + (Bokföring, Fakturering, Lön, …), Register owns master data, Rapporter + owns read-only output, Räkenskapsår its own, and a feature adds at most + one section. Sections stay stable; screens come and go inside them. +21. **Invoicing (2026-09-20, design)**: `docs/INVOICING.md` is the chapter. + bokf owns invoices end to end: customer register, a global + always-increasing number series in `invoice_sequence` (start 17761), + `OCR = number + MOD10`, a one-page PDF reproducing the Google Sheets + original (Helvetica + Comfortaa outlines, no new deps), issue = number + + PDF attachment + voucher + link in one transaction, F5 preview of the + 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). ## Pending decisions -- cgit v1.3