$echo '{
< "template": "<style>body{font-family:Helvetica,Arial,sans-serif;color:#1f2937;margin:0}h1{font-size:26px;margin:0;color:#0f2a4a}.top{display:flex;justify-content:space-between;border-bottom:3px solid #0f2a4a;padding-bottom:12px}.muted{color:#6b7280;font-size:12px}table{width:100%;border-collapse:collapse;margin-top:24px;font-size:13px}th{background:#0f2a4a;color:#fff;text-align:left;padding:8px}td{padding:8px;border-bottom:1px solid #e5e7eb}td.r,th.r{text-align:right}.tot{margin-top:16px;text-align:right;font-size:16px;font-weight:bold}</style>\\n<div class=\\"top\\"><div><h1>Invoice {{ number }}</h1><div class=\\"muted\\">Issued {{ date }} - due {{ due }}</div></div><div style=\\"text-align:right\\"><b>{{ seller }}</b><div class=\\"muted\\">VAT {{ sellerVat }}</div></div></div>\\n<p><b>Bill to:</b> {{ customer }}<br><span class=\\"muted\\">{{ customerCity }}</span></p>\\n<table><tr><th>Description</th><th class=\\"r\\">Qty</th><th class=\\"r\\">Unit</th><th class=\\"r\\">Amount</th></tr>\\n{% for l in lines %}<tr><td>{{ l.desc }}</td><td class=\\"r\\">{{ l.qty }}</td><td class=\\"r\\">{{ l.unit | money('\''EUR'\'') }}</td><td class=\\"r\\">{{ (l.qty * l.unit) | money('\''EUR'\'') }}</td></tr>{% endfor %}</table>\\n<div class=\\"tot\\">Total excl. VAT: {{ total | money('\''EUR'\'') }}</div>",
< "dataRows": [
< {
< "number": "2026-0141",
< "date": "2026-11-02",
< "due": "2026-12-02",
< "seller": "Northwind Studio B.V.",
< "sellerVat": "NL001234567B01",
< "customer": "Lindqvist Outdoor AB",
< "customerCity": "Gothenburg, Sweden",
< "lines": [
< {
< "desc": "Product photography (half day)",
< "qty": 1,
< "unit": 640
< },
< {
< "desc": "Retouching, per image",
< "qty": 24,
< "unit": 9.5
< },
< {
< "desc": "Usage licence web, 12 months",
< "qty": 1,
< "unit": 180
< }
< ],
< "total": 1048
< },
< {
< "number": "2026-0142",
< "date": "2026-11-05",
< "due": "2026-12-05",
< "seller": "Northwind Studio B.V.",
< "sellerVat": "NL001234567B01",
< "customer": "Café Moreau SARL",
< "customerCity": "Lyon, France",
< "lines": [
< {
< "desc": "Menu design, 2 pages",
< "qty": 1,
< "unit": 420
< },
< {
< "desc": "Print-ready PDF export",
< "qty": 2,
< "unit": 35
< }
< ],
< "total": 490
< },
< {
< "number": "2026-0143",
< "date": "2026-11-09",
< "due": "2026-12-09",
< "seller": "Northwind Studio B.V.",
< "sellerVat": "NL001234567B01",
< "customer": "Brauerei Hofmann GmbH",
< "customerCity": "Bamberg, Germany",
< "lines": [
< {
< "desc": "Label design, 3 variants",
< "qty": 3,
< "unit": 260
< },
< {
< "desc": "Colour proof round",
< "qty": 2,
< "unit": 45
< },
< {
< "desc": "Rush fee",
< "qty": 1,
< "unit": 120
< }
< ],
< "total": 1020
< }
< ],
< "footerTemplate": "<div style='\''font-size:9px;width:100%;text-align:center;color:#6b7280'\''>Page <span class='\''pageNumber'\''></span> of <span class='\''totalPages'\''></span></div>",
< "fileNameTemplate": "invoice-{{ number }}",
< "mergeIntoOne": true
<}' |
<apify call digivibetech/html-to-pdf --silent --output-dataset