summaryrefslogtreecommitdiff
path: root/clients/ui.h
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-23 09:13:17 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-23 09:13:17 +0200
commit53071bb69f5d21b35b8a61c2b1dd18832ce781d4 (patch)
treefa76c13cef78925d1b9650e92f64d5115dcdb6e7 /clients/ui.h
parent2ca284619125af0d5c12e9210ff1bfc8f9122739 (diff)
downloadbokf-53071bb69f5d21b35b8a61c2b1dd18832ce781d4.tar.gz
bokf-53071bb69f5d21b35b8a61c2b1dd18832ce781d4.zip
tui: aligned voucher detail, up/down between vouchers, list sorting
The detail pads every column by display width, blanks zero amounts and shows row texts and a Summa line. Up/Down step to the previous/next voucher in the list order; 's' cycles the list sort (number or date, ascending or descending, saved in tui.conf). The list fetches all pages of voucher.list instead of stopping at 200. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'clients/ui.h')
-rw-r--r--clients/ui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/ui.h b/clients/ui.h
index c546c91..8574121 100644
--- a/clients/ui.h
+++ b/clients/ui.h
@@ -37,6 +37,7 @@ struct app {
char role[32];
int64_t fy;
int64_t voucher_sel; /* last selected voucher id in the list view */
+ int voucher_sort; /* VSORT_* for the list, kept in tui.conf */
int64_t invoice_sel; /* last selected invoice id in the list view */
int64_t customer_sel; /* last selected customer id in the list view */
int64_t employee_sel; /* last selected employee id in the list view */