summaryrefslogtreecommitdiff
path: root/docs/STATE.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 14:41:23 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 14:41:23 +0200
commit9abb72570954b01e5a2a402dbfa29cc33afdf321 (patch)
treee8bc3b22e47847273abd3f945647d1c58be9bce4 /docs/STATE.md
parent3375c7c9cae3b53358655de638b8b632c6becea6 (diff)
downloadbokf-9abb72570954b01e5a2a402dbfa29cc33afdf321.tar.gz
bokf-9abb72570954b01e5a2a402dbfa29cc33afdf321.zip
invoicing: design chapter with layout, numbering and SMTP
Diffstat (limited to 'docs/STATE.md')
-rw-r--r--docs/STATE.md13
1 files changed, 13 insertions, 0 deletions
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