diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-20 22:39:08 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-20 22:39:08 +0200 |
| commit | 9b1021e3d5c42a28a97517a4e07f37cde0b5b8a3 (patch) | |
| tree | c34c92a40d354115730307b5ebe0c58a17f70214 /clients/ui.h | |
| parent | 76f43cc7817fafed2485ac975426eb2e97ea9986 (diff) | |
| download | bokf-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.h | 9 |
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); |
