Skip to content

Commit

Permalink
Changed name of pdf to receipt number and customer name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wholteza committed Jul 1, 2023
1 parent 2a0b215 commit 1167222
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/use-pdf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ const usePdf = () => {
},
]);

doc.save("kvitto.pdf");
doc.save(
`${receiptInformation.number ?? "kvitto"} - ${
customerInformation.Identity.Name
}`
);
},
[]
);
Expand Down

0 comments on commit 1167222

Please sign in to comment.