aboutsummaryrefslogtreecommitdiff
path: root/docs/PROTOCOL.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/PROTOCOL.md')
-rw-r--r--docs/PROTOCOL.md52
1 files changed, 41 insertions, 11 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index ebce8bf..76197d9 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -378,8 +378,9 @@ resolved rows in a dry run.
`default_series` (1–8 characters, e.g. `A`, `V-`, `A `) is used when
`voucher.post` carries no `series` and as the default series for new
-templates. `attachment_dir` (a path, up to 255 characters) is the folder the
-TUI file browser opens in when attaching underlag. `bank_account` (digits
+templates. `attachment_dir` (a path, up to 255 characters) is accepted for
+compatibility, but the TUI file browser now remembers the directory of the
+last picked attachment client-side. `bank_account` (digits
only, up to 10 characters, default `1930`) is the account `bank.import` uses
when the request carries no `account`. `invoice_receivable_account` (default
`1510`) and `invoice_revenue_account` (default `3001`) are the receivable and
@@ -925,6 +926,26 @@ commands. Implemented screens (0.1.0-dev):
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.
+- **Lönekörningar** — the monthly payroll runs (`payroll.run_list`, newest
+ period first) with status (`bokförd`/`betald`), gross and net. Ctrl+N
+ starts a new run (period YYYY-MM and pay date, defaulting into the
+ selected fiscal year) when an active employee with a monthly salary
+ exists, Enter opens an existing run. The run screen shows the status and
+ totals, `F5` previews (`payroll.run_preview` for a new run, the stored
+ lines for a posted one), `Ctrl+Enter` posts after confirmation
+ (`payroll.run_post`, showing the voucher), and the manual steps are the
+ action rows **Lönebesked** (PDF via `payroll.payslip`), **AGI-underlag**
+ (`payroll.agi`, owner only) and **Betala skatt & avgifter**
+ (`payroll.pay_tax`); a disabled step names its reason. The list title
+ warns when the current year's tax tables are missing.
+- **Anställda** — the employee register (name, masked personnummer, salary,
+ tax table/column, e-mail). Ctrl+N creates, Enter edits (an empty
+ personnummer keeps the stored one), `d` archives/reactivates; F5
+ validates with a dry run and Ctrl+Enter saves.
+- **Skattetabeller** (via **System**) — stored tax table years, the current
+ year's status, fetch time and source. Owners fetch Skatteverket's official
+ monthly table (`payroll.tax_tables_fetch`) or import a file offline
+ (`payroll.tax_tables_import`).
- **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).
@@ -939,18 +960,27 @@ commands. Implemented screens (0.1.0-dev):
events, AGM and payment dates, proposed dividend, employees, other notes),
edited per field; a new fiscal year inherits the stable fields. The
årsredovisning draft reads them without prompting.
-- **Företagsuppgifter** — the org record (name, org number, VAT number,
- address, e-mail, phone, moms period, framework, fiscal-year start month),
- plus the invoice bankgiro and "vår referens"; editable in place, only
- owners can save, others see it read-only. The accounting accounts and the
- SMTP transport live in **Inställningar**.
-- **Revision** — chain verification and behandlingshistorik.
+- **Bolaget** — the dashboard's hub for the org's master data:
+ **Företagsuppgifter** (name, org number, VAT number, address, e-mail,
+ phone, moms period, framework, fiscal-year start month), editable in
+ place by owners, others see it read-only; **Fakturauppgifter**
+ (standardserie, fordringskonto, intäktskonto, bankgiro, vår referens) and
+ **E-post (SMTP)** (host, port, user, sender, reply-to, security,
+ password), both `settings.set` and open to bookkeepers;
+ **Styrelseledamöter**; and the registers **Anställda**, **Kunder** and
+ **Momsregler**.
+- **System** — the hub with **Skattetabeller** and **Revision**. The file
+ browser starts in the directory of the last picked attachment (remembered
+ in the client's `tui.conf`) and falls back to `$HOME` when it is gone.
+- **Revision** (via **System**) — chain verification and
+ behandlingshistorik.
**Ctrl+N is the universal "add" key**: it starts a new verifikat from the
dashboard, the voucher list and the voucher detail view; a new mall from the
-Mallar menu; a new fiscal year from the year picker; and maps to the editor
-in Ingående balans and to file upload in Underlag. F5 is the universal
-refresh. Hints show the keys per screen.
+Mallar menu; a new customer or employee from their registers; a new payroll
+run from Lönekörningar; a new fiscal year from the year picker; and maps to
+the editor in Ingående balans and to file upload in Underlag. F5 is the
+universal refresh. Hints show the keys per screen.
**Ctrl+R reloads the client in place** (for hot-reloading after a rebuild):
it re-execs the installed binary with `--org`, `--fy` and `--screen NAME`