diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-19 23:53:09 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-19 23:53:09 +0200 |
| commit | 1f2d7a8190876e3d1c541251e079a11a2cc637f2 (patch) | |
| tree | 284427385e9c140dddb0c97df318fc85852fe8e1 /docs/TUI-GUIDELINES.md | |
| parent | 86c0ef0e30f6cb24db04f20a326cf5fb4b616c3c (diff) | |
| download | bokf-1f2d7a8190876e3d1c541251e079a11a2cc637f2.tar.gz bokf-1f2d7a8190876e3d1c541251e079a11a2cc637f2.zip | |
tui: bokslut hub with year fields, reports and the posting actionv0.1.43
Diffstat (limited to 'docs/TUI-GUIDELINES.md')
| -rw-r--r-- | docs/TUI-GUIDELINES.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/TUI-GUIDELINES.md b/docs/TUI-GUIDELINES.md index decca09..3bed983 100644 --- a/docs/TUI-GUIDELINES.md +++ b/docs/TUI-GUIDELINES.md @@ -97,6 +97,22 @@ written compactly as `^N`, `^A`, `^C`, `^R` to save width. changing anything. Typing a printable character hands the focus to the first table cell and inserts it there, so rows can be entered without touching the header. `F5`/`Ctrl+Enter`/`Esc` work the same from both. +- A form may carry an action list under its fields (`tui_form_run_actions`): + fields first, then action rows, one focus ring (`Tab`/`Shift-Tab`/ + up/down, `Home`/`End`; the ring wraps and heading rows are skipped). + `enabled: 1` runs on `Enter`; `0` is dimmed but selectable and shown as + `label (reason)`, `Enter` shows the reason in a message; `-1` is a dim + non-selectable heading/status row like a menu section. The call returns + the field index after an edit, `TUI_FORM_ACTION + i` for a chosen action, + or `TUI_FORM_BACK`/`REFRESH`/`SUBMIT`; `tui_form_hint()` overrides the + footer of the next run as usual. +- `Bokslut` is the year-end hub in one view: the year fields, the status + heading `Bokslut bokfört: ja/nej` (derived from the `Skatt på årets + resultat` voucher that `bokslut.post` creates; a closed year counts as + posted) and the actions Årsredovisning (K2), Inkomstdeklaration + (INK2/SRU), Bokslutsplan (torrkörning) and Bokför bokslut — the last + dimmed with a reason when the year is closed or already posted. `F5` + shows the plan, `Ctrl+Enter` posts it. - Validation: `F5` validates without writing and reports exactly what is wrong (field, row number). Server `dry_run` is used where available. - Saving: `Ctrl+Enter` writes, shows a confirmation message, and returns to |
