This commit is contained in:
Moritz Utcke
2025-08-05 11:16:14 -04:00
parent 5683596e09
commit 366e813f29
2 changed files with 4 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ Handlebars.registerHelper("get-provision-betrag", function (ausweisart, ausweist
}); });
const template = Handlebars.compile(abrechnungTemplateHTML); const template = Handlebars.compile(abrechnungTemplateHTML);
const html = template({ monat: datum.format("MMMM YYYY"), bestellungen: blocks, heute: moment().format("DD.MM.YYYY") }); const html = template({ monat: datum.format("MMMM YYYY"), bestellungen: blocks, heute: moment().format("DD.MM.YYYY"), plz: benutzer.plz, ort: benutzer.ort, adresse: benutzer.adresse, firma: benutzer.firma, email: benutzer.email });
await page.goto(`data:text/html;charset=UTF-8,${encodeURIComponent(html)}`, { await page.goto(`data:text/html;charset=UTF-8,${encodeURIComponent(html)}`, {
waitUntil: "networkidle0", waitUntil: "networkidle0",
}); });

View File

@@ -23,9 +23,9 @@
<p class="text-sm">IB Cornelsen · Katendeich 5A · 21035 Hamburg</p> <p class="text-sm">IB Cornelsen · Katendeich 5A · 21035 Hamburg</p>
</div> </div>
<div class="flex flex-col"> <div class="flex flex-col">
<p>Immowelt GmbH</p> <p>{{ @root.firma }}</p>
<p>Nordostpark 3-5</p> <p>{{ @root.adresse }}</p>
<p>90411 Nürnberg</p> <p>{{ @root.plz }} {{ @root.ort }}</p>
</div> </div>
</div> </div>
{{/if}} {{/if}}