From 9b1021e3d5c42a28a97517a4e07f37cde0b5b8a3 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sun, 20 Sep 2026 22:39:08 +0200 Subject: tui: bank prefill vouchers and auto-match after posting --- clients/ui.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'clients/ui.h') diff --git a/clients/ui.h b/clients/ui.h index 1737259..d10f680 100644 --- a/clients/ui.h +++ b/clients/ui.h @@ -99,10 +99,19 @@ extern const struct is_group IS_GROUPS[IS_GROUPS_N]; void open_scene(struct app *a, const char *name); void config_mkdirs(const char *path); +/* Optional prefill for the new-voucher form (bank reconciliation). */ +struct voucher_prefill { + const char *date; /* YYYY-MM-DD, may be NULL */ + const char *description; /* voucher text, may be NULL */ + const char *bank_account; /* account number for the prefilled row */ + int64_t amount_ore; /* > 0 debits the bank account, < 0 credits it */ +}; + /* screen entry points (scene registry) */ void dashboard(struct app *a); void update_status(struct app *a); int64_t vouchers_new(struct app *a); +int64_t vouchers_new_prefill(struct app *a, const struct voucher_prefill *p); void vouchers_screen(struct app *a); void acct_cache_free(void); const char *acct_name(struct app *a, const char *number); -- cgit v1.3