From adbbd363c77cb35fc1bdef7b819575307582b01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Talha=20Alt=C4=B1nel?= Date: Fri, 19 Jul 2024 00:05:01 +0100 Subject: [PATCH] adjust pdf filename (#12) --- src/lib/InvoicePrint.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/InvoicePrint.svelte b/src/lib/InvoicePrint.svelte index 1234cbf..66588d4 100644 --- a/src/lib/InvoicePrint.svelte +++ b/src/lib/InvoicePrint.svelte @@ -3,11 +3,17 @@ import { invoice } from "../store"; import { DecimalFixed } from "./decimal"; + export let title = "Invoice"; + let from: Array = []; let to: Array = []; let notes: Array = []; onMount(() => { + if ($invoice.invoiceNumber.trim() != "") { + title = $invoice.invoiceNumber; + } + from = $invoice.from.split("\n"); to = $invoice.to.split("\n"); notes = $invoice.notes.split("\n"); @@ -18,6 +24,10 @@ }); + + {title} + +