From 251eb8c54c77029f0b43aa987ea50c44016147f3 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Fri, 18 Sep 2026 21:35:10 +0200 Subject: eskd: generate the momsdeklaration file (eSKDUpload 6.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/reports.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/reports.h') diff --git a/src/reports.h b/src/reports.h index d4a0545..c4a6e4e 100644 --- a/src/reports.h +++ b/src/reports.h @@ -26,5 +26,9 @@ yyjson_mut_val *report_general_ledger(yyjson_mut_doc *doc, sqlite3 *db, yyjson_mut_val *report_voucher_list(yyjson_mut_doc *doc, sqlite3 *db, int64_t org_id, int64_t fy_id, const char *series, char **err); +yyjson_mut_val *report_vat_eskd(yyjson_mut_doc *doc, sqlite3 *db, + int64_t org_id, const char *from, + const char *to, const char *upplysning, + char **err); #endif -- cgit v1.3