From 49e44668c14abacef17f0f11be39cbd0faa7ecb9 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Fri, 18 Sep 2026 23:41:59 +0200 Subject: bokslut, INK2/SRU export and attachment markers - 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. --- src/sru.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/sru.h (limited to 'src/sru.h') diff --git a/src/sru.h b/src/sru.h new file mode 100644 index 0000000..7b5a57a --- /dev/null +++ b/src/sru.h @@ -0,0 +1,15 @@ +#ifndef BOKF_SRU_H +#define BOKF_SRU_H + +#include +#include + +#include "yyjson.h" + +/* Builds Skatteverket's SRU files (INFO.SRU + BLANKETTER.SRU with INK2, + INK2R and INK2S) for a fiscal year. Returns a result object with both + files base64-encoded, or NULL with *err set. */ +yyjson_mut_val *sru_export(yyjson_mut_doc *doc, sqlite3 *db, int64_t org_id, + int64_t fy_id, yyjson_val *args, char **err); + +#endif -- cgit v1.3