10 lines
2.3 KiB
JSON
10 lines
2.3 KiB
JSON
{
|
|
"name": "lieferschein_html_table",
|
|
"documentName": "lieferschein_html_table",
|
|
"sourceFileName": "lieferschein_html_table.html.tpl",
|
|
"description": "HTML-Lieferschein mit dynamischer Tabelle, Barcode je Zeile und QR-Code im Kopf",
|
|
"contentType": "text/html",
|
|
"templateType": "HTML",
|
|
"encoding": "UTF-8",
|
|
"content": "<!doctype html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <title>Lieferschein HTML Tabelle</title>\n <style>\n @page { size: A4; margin: 14mm; }\n body { font-family: Arial, sans-serif; font-size: 10pt; color: #111; }\n h1 { font-size: 18pt; margin: 0 0 8mm 0; }\n .header { display: flex; justify-content: space-between; align-items: flex-start; }\n .box { border: 1px solid #999; padding: 3mm; margin-bottom: 5mm; }\n table { width: 100%; border-collapse: collapse; table-layout: fixed; }\n th, td { border: 1px solid #777; padding: 2mm; vertical-align: top; }\n th { background: #eeeeee; font-weight: bold; }\n .right { text-align: right; }\n .center { text-align: center; }\n .barcode { width: 42mm; height: 12mm; object-fit: contain; }\n .qr { width: 28mm; height: 28mm; }\n </style>\n</head>\n<body>\n <div class=\"header\">\n <div>\n <h1>Lieferschein</h1>\n <div><b>Nr.:</b> {{text:deliveryNumber}}</div>\n <div><b>Datum:</b> {{text:deliveryDate}}</div>\n </div>\n <img class=\"qr\" alt=\"QR\" src=\"{{qr:deliveryNumber}}\">\n </div>\n\n <div class=\"box\"><b>Kunde:</b> {{text:customer.name}}</div>\n\n <table>\n <thead>\n <tr>\n <th style=\"width:10mm\">Pos.</th>\n <th style=\"width:32mm\">Artikel</th>\n <th>Bezeichnung</th>\n <th style=\"width:18mm\">Menge</th>\n <th style=\"width:38mm\">Seriennummer</th>\n <th style=\"width:45mm\">Barcode</th>\n </tr>\n </thead>\n <tbody>\n {{#each:items}}\n <tr>\n <td class=\"center\">{{text:pos}}</td>\n <td>{{text:partNumber}}</td>\n <td>{{text:description}}</td>\n <td class=\"right\">{{text:quantity}}</td>\n <td>{{text:serialNumber}}</td>\n <td class=\"center\"><img class=\"barcode\" alt=\"Barcode\" src=\"{{barcode:CODE_128:serialNumber:360x90}}\"></td>\n </tr>\n {{/each}}\n </tbody>\n </table>\n</body>\n</html>\n"
|
|
} |