aboutsummaryrefslogtreecommitdiff
path: root/src/commands.c
AgeCommit message (Collapse)Author
25 hourscommands: split the command table by domainAnders Betts
29 hourssettings: allow invoice_our_refAnders Betts
29 hoursinvoice: send the issued PDF over SMTPAnders Betts
29 hourssecret: build it as its own unitAnders Betts
29 hourssettings: encrypted secrets and SMTP settingsAnders Betts
29 hoursinvoice: allow setting the bankgiro, document wave 1Anders Betts
29 hoursinvoice: customer, sequence, preview and issue commandsAnders Betts
32 hoursbank: import SEB CSV and match against vouchers (schema v8)Anders Betts
35 hoursreport: per-org moms rule editor commandsAnders Betts
35 hourscommands: declarative argument schemas with dispatch validationAnders Betts
35 hoursaudit: verify voucher chains and attachment hashesAnders Betts
48 hoursårsredovisning: Information om året per räkenskapsår (schema v6)v0.1.34Anders Betts
2 daysbokslut: TUI screen, K2 årsredovisning draft, storable dividend (schema v4)v0.1.33Anders Betts
2 daysattachments: list every link when filtering by voucherv0.1.32Anders Betts
3 daysbokslut, INK2/SRU export and attachment markersv0.1.30Anders Betts
- bokslut.post: year-end bookings (manual entries, periodiseringsfond, skatt at a given rate, resultatdisposition) with a dry-run plan through the normal ledger path; the resultatrapport separates bokslutsdispositioner and skatt per K2. - sru.export: INFO.SRU + BLANKETTER.SRU (INK2/INK2R/INK2S) from the official 2025P4 field tables and the BAS mapping, with manual INK2S adjustments, submitter defaults and unmapped-account detection; the TUI writes both files from Rapporter -> Inkomstdeklaration. - voucher.list carries attachment_count and the voucher list marks vouchers with underlag with an x column. - date_prompt restores the cursor state so it stops blinking at the bottom after the report date prompts.
3 daysattachments: link/unlink from the TUI, multi-voucher linksv0.1.29Anders Betts
The voucher detail can attach a file to an existing voucher (^F) and the underlag picker (f) can remove a link (d, confirmed). The Underlag inbox links a highlighted item to a voucher picked from a list (k). attachment.link and attachment.unlink are new write commands (dry-run, audited); unlinked files return to the inbox. The same content may now link to several vouchers — only the same voucher/attachment pair is a CONFLICT, matching the table's primary key.
3 dayseskd: generate the momsdeklaration file (eSKDUpload 6.0)v0.1.28Anders Betts
report.vat_eskd builds the ISO-8859-1 XML from report.vat: whole kronor with öre truncated like the blankett, box 48 positive as filed, MomsBetala computed from the whole-krona boxes, and an optional upplysning converted from UTF-8, XML-escaped and capped at 300 characters. The TUI momsrapport gains "s = spara eSKD", prompting for a path and writing the bytes verbatim. Verified against the FY2027 Kapitas report: 05=703200, 10=175800, 20=1453, 30=851, 48=1030, 49=175621.
3 daysreports: huvudbok and verifikationslista; fiscal_year.reopenAnders Betts
report.general_ledger lists every account with activity or IB, its postings in date order with a running saldo, and Omslutning/Utgående saldo; accounts?/from?/to? narrow it. report.voucher_list lists the year's vouchers with rows and totals, with an optional series filter. fiscal_year.reopen undoes a close (owner-only, confirm:true, audited) so the Räkenskapsår screen can toggle the status.
4 daysbokftui: Företagsuppgifter screen; org.update dry-runv0.1.7Anders Betts
- owner-editable company details form (read-only for other roles) - org.update honors dry_run; covered in tests
4 daysImplement org.update (owner) and cover it in testsv0.1.5Anders Betts
4 daysInitial commit: daemon, clients, docs, Docker deploy pipelinev0.1.0Anders Betts