summaryrefslogtreecommitdiff
path: root/clients/screens_invoices.c
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 22:07:58 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 22:07:58 +0200
commitad8e1707374ca56bed3dbf472dc8b6bb6cb1f38b (patch)
tree16aa7a868b4a95a8ee12c8e371f6f4e57c37b6a6 /clients/screens_invoices.c
parentf2c8f68763494f64a0a2d2e48d852bd83bd6df65 (diff)
downloadbokf-0.1.61.tar.gz
bokf-0.1.61.zip
tui: granska/ladda ned underlag via pagern eller skrivbordsvisarenv0.1.61
Diffstat (limited to 'clients/screens_invoices.c')
-rw-r--r--clients/screens_invoices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/screens_invoices.c b/clients/screens_invoices.c
index 8fb32eb..d685e83 100644
--- a/clients/screens_invoices.c
+++ b/clients/screens_invoices.c
@@ -476,7 +476,7 @@ static void inv_detail_pdf(struct invctx *ctx)
char fname[800];
snprintf(fname, sizeof fname, "Faktura %lld %s.pdf",
(long long)ctx->number, ctx->customer);
- pdf_save_and_open(b64, fname, "Faktura PDF");
+ file_save_and_open(b64, fname, "Faktura PDF");
free(b64);
}
free(resp);
@@ -967,7 +967,7 @@ static void iform_preview(struct iform *f)
}
char *b64 = jstr_dup(resp, "result.content_base64");
if (b64) {
- pdf_save_and_open(b64, "Faktura förhandsvisning.pdf", "Faktura PDF");
+ file_save_and_open(b64, "Faktura förhandsvisning.pdf", "Faktura PDF");
free(b64);
}
free(resp);