aboutsummaryrefslogtreecommitdiff
path: root/src/reports.h
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 21:35:10 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 21:35:10 +0200
commit251eb8c54c77029f0b43aa987ea50c44016147f3 (patch)
tree2bf4284ce2daab191d48579a6c5a84882060d398 /src/reports.h
parent64c0d5d79b31dafcbdb68ff938a92bd6f136d4a7 (diff)
downloadbokf-251eb8c54c77029f0b43aa987ea50c44016147f3.tar.gz
bokf-251eb8c54c77029f0b43aa987ea50c44016147f3.zip
eskd: generate the momsdeklaration file (eSKDUpload 6.0)v0.1.28
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.
Diffstat (limited to 'src/reports.h')
-rw-r--r--src/reports.h4
1 files changed, 4 insertions, 0 deletions
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