From 0ec59a0dfce8d350f26783ccc2456e5cb68c37a5 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Fri, 18 Sep 2026 21:07:38 +0200 Subject: reports: huvudbok and verifikationslista; fiscal_year.reopen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit report.general_ledger lists every account with activity or IB, its postings in date order with a running saldo, and Omslutning/Utgående saldo; accounts?/from?/to? narrow it. report.voucher_list lists the year's vouchers with rows and totals, with an optional series filter. fiscal_year.reopen undoes a close (owner-only, confirm:true, audited) so the Räkenskapsår screen can toggle the status. --- src/reports.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/reports.h') diff --git a/src/reports.h b/src/reports.h index 37d5f67..d4a0545 100644 --- a/src/reports.h +++ b/src/reports.h @@ -19,5 +19,12 @@ yyjson_mut_val *report_balance_sheet(yyjson_mut_doc *doc, sqlite3 *db, const char *to, char **err); yyjson_mut_val *report_vat(yyjson_mut_doc *doc, sqlite3 *db, int64_t org_id, const char *from, const char *to, char **err); +yyjson_mut_val *report_general_ledger(yyjson_mut_doc *doc, sqlite3 *db, + int64_t org_id, int64_t fy_id, + const char *from, const char *to, + yyjson_val *accounts, char **err); +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); #endif -- cgit v1.3