From 678d9a58be42c9375511c402642fd621029172c5 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sat, 19 Sep 2026 00:01:25 +0200 Subject: sru: INK2 report view in the TUI; voucher list tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tests/test_core.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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\"," -- cgit v1.3