From 62a92f0af0442c78277c3c97c9efe6fef8145625 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Mon, 21 Sep 2026 21:43:44 +0200 Subject: settings: per-feature voucher series and console invoice number; tui: F9 hints --- src/cmd_invoices.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cmd_invoices.c') 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; -- cgit v1.3