aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/PROTOCOL.md14
-rw-r--r--docs/TUI-GUIDELINES.md4
2 files changed, 17 insertions, 1 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index 9789fc6..0f9b8e7 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -674,6 +674,20 @@ commands. Implemented screens (0.1.0-dev):
against vouchers on the bank account, with suggestions; Enter matches the
suggested voucher (or picks another), `u` unmatches, `a`/`Ctrl+N` imports
a SEB CSV. Phase 1 never books anything.
+- **Fakturor** — invoice list (`invoice.list`, newest first) with number,
+ date, customer, total and status (`utfärdad`/`krediterad`). Ctrl+N opens
+ the form, Enter the detail. The form has the customer picker, invoice/due
+ (due defaults from the customer's payment days) and delivery dates, er/var
+ referens and rows (beskrivning, antal, enhet, à-pris, moms, anm); `F5`
+ previews the real PDF (`invoice.preview`, nothing stored, no number
+ consumed), `Ctrl+Enter` issues (`invoice.issue`) and then asks
+ "Skicka faktura <nr> till <e-post>?". The detail shows header and rows;
+ `p` fetches the stored PDF (`invoice.pdf`) and `s` sends it
+ (`invoice.send`).
+- **Kunder** — the customer register (name, address, postal code, city, VAT
+ number, e-mail, your reference, payment days, notes). Ctrl+N creates,
+ Enter edits (F5 validates with a dry run, Ctrl+Enter saves), `d`
+ archives/reactivates.
- **Rapporter** — saldobalans, resultaträkning, balansräkning, moms,
inkomstdeklaration (INK2/SRU), årsredovisning (K2 text draft) and
kontolista (all accounts with type, moms treatment, SRU and status).
diff --git a/docs/TUI-GUIDELINES.md b/docs/TUI-GUIDELINES.md
index 09605e9..46982ed 100644
--- a/docs/TUI-GUIDELINES.md
+++ b/docs/TUI-GUIDELINES.md
@@ -93,7 +93,9 @@ written compactly as `^N`, `^A`, `^C`, `^R` to save width.
to the next row's first cell (`Shift-Tab` back). A dim footer callback
shows one derived line (balance, attachment list) on its own row above the
hints (`LINES-2`), never over a table row; `\n` in the text becomes a
- space.
+ space. A cell holding one of a fixed set of values (unit, VAT code) is
+ changed with `Enter`, which opens `tui_choice_prompt` from the row table's
+ key hook; the chosen value stays in the same cell buffer as any other row.
- Fields with `mask` set are shown as `*` (`tui_form_field.mask`); used for
passwords. ACTION fields show their `value` when set, else `(lista)`.
- Header fields plus rows: one `tui_rt_run` with `tui_rt_set_fields` draws