summaryrefslogtreecommitdiff
path: root/src/cmd_invoices.c
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 21:43:44 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 21:43:44 +0200
commit62a92f0af0442c78277c3c97c9efe6fef8145625 (patch)
tree3802a62904880da22bf84a44e9ece3cdff9cd8aa /src/cmd_invoices.c
parentf1eeb15781a044a9451ee08b91c63feb395b4767 (diff)
downloadbokf-8d2a0dd146475d0fab9711ade0df070a4e013bc6.tar.gz
bokf-8d2a0dd146475d0fab9711ade0df070a4e013bc6.zip
settings: per-feature voucher series and console invoice number; tui: F9 hintsv0.1.60
Diffstat (limited to 'src/cmd_invoices.c')
-rw-r--r--src/cmd_invoices.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd_invoices.c b/src/cmd_invoices.c
index 0892ac8..73273dc 100644
--- a/src/cmd_invoices.c
+++ b/src/cmd_invoices.c
@@ -821,6 +821,9 @@ static yyjson_mut_val *h_invoice_issue(struct req *r)
invoice_store_attachment(r, &v, pdf, pdf_len, &attachment_id) != 0)
goto done;
+ char series[16];
+ db_setting_copy(r->db, r->org_id, "series_invoice", "F", series,
+ sizeof series);
struct ledger_post_opts o;
memset(&o, 0, sizeof o);
o.org_id = r->org_id;
@@ -831,6 +834,7 @@ static yyjson_mut_val *h_invoice_issue(struct req *r)
o.rows = vrows;
o.nrows = vn;
o.source = "invoice";
+ o.series = series;
o.dry_run = r->dry_run;
o.already_in_tx = 1;
struct ledger_error e;