aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.c
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-19 00:01:25 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-19 00:01:25 +0200
commit678d9a58be42c9375511c402642fd621029172c5 (patch)
tree6bbaa23c06b92767caf1f188d1f731f4a593054d /tests/test_core.c
parent49e44668c14abacef17f0f11be39cbd0faa7ecb9 (diff)
downloadbokf-0.1.31.tar.gz
bokf-0.1.31.zip
sru: INK2 report view in the TUI; voucher list tweaksv0.1.31
sru.export now returns the emitted fields as ink2/ink2r/ink2s arrays plus from/to, so Rapporter -> Inkomstdeklaration (INK2/SRU) renders the declaration as a table with the official fältnamn before saving; unmapped accounts are listed in the view. The voucher list puts the verifikat id before the date, widens the column gaps and adds an inner margin.
Diffstat (limited to 'tests/test_core.c')
-rw-r--r--tests/test_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_core.c b/tests/test_core.c
index bb31fc7..66f8207 100644
--- a/tests/test_core.c
+++ b/tests/test_core.c
@@ -1618,6 +1618,9 @@ int main(void)
CHECK(strstr(sru, "#UPPGIFT 7104 919") != NULL);
CHECK(strstr(sru, "#FIL_SLUT") != NULL);
free(sru);
+ CHECK_STR(d, "result.from", "2026-01-01");
+ CHECK(find_amount(d, "result.ink2r", "code", "7281", "amount") == 1875);
+ CHECK(find_amount(d, "result.ink2s", "code", "7670", "amount") == 919);
yyjson_doc_free(d);
d = call(reqf("{\"v\":1,\"id\":\"126\",\"cmd\":\"sru.export\","