Skip to content

Commit

Permalink
adjust pdf filename (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwormhole authored Jul 18, 2024
1 parent 5201387 commit adbbd36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/InvoicePrint.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
import { invoice } from "../store";
import { DecimalFixed } from "./decimal";
export let title = "Invoice";
let from: Array<string> = [];
let to: Array<string> = [];
let notes: Array<string> = [];
onMount(() => {
if ($invoice.invoiceNumber.trim() != "") {
title = $invoice.invoiceNumber;
}
from = $invoice.from.split("\n");
to = $invoice.to.split("\n");
notes = $invoice.notes.split("\n");
Expand All @@ -18,6 +24,10 @@
});
</script>

<svelte:head>
<title>{title}</title>
</svelte:head>

<div id="invoice-container">
<header class="clearfix">
<div id="logo">
Expand Down

0 comments on commit adbbd36

Please sign in to comment.