summaryrefslogtreecommitdiff
path: root/clients/ui.h
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 22:39:08 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 22:39:08 +0200
commit9b1021e3d5c42a28a97517a4e07f37cde0b5b8a3 (patch)
treec34c92a40d354115730307b5ebe0c58a17f70214 /clients/ui.h
parent76f43cc7817fafed2485ac975426eb2e97ea9986 (diff)
downloadbokf-9b1021e3d5c42a28a97517a4e07f37cde0b5b8a3.tar.gz
bokf-9b1021e3d5c42a28a97517a4e07f37cde0b5b8a3.zip
tui: bank prefill vouchers and auto-match after posting
Diffstat (limited to 'clients/ui.h')
-rw-r--r--clients/ui.h9
1 files changed, 9 insertions, 0 deletions
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);