Fehlende Dateien und Ordner hinzugefügt
This commit is contained in:
58
target/classes/examples/lieferschein_html_table.html.tpl
Normal file
58
target/classes/examples/lieferschein_html_table.html.tpl
Normal file
@@ -0,0 +1,58 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Lieferschein HTML Tabelle</title>
|
||||
<style>
|
||||
@page { size: A4; margin: 14mm; }
|
||||
body { font-family: Arial, sans-serif; font-size: 10pt; color: #111; }
|
||||
h1 { font-size: 18pt; margin: 0 0 8mm 0; }
|
||||
.header { display: flex; justify-content: space-between; align-items: flex-start; }
|
||||
.box { border: 1px solid #999; padding: 3mm; margin-bottom: 5mm; }
|
||||
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
|
||||
th, td { border: 1px solid #777; padding: 2mm; vertical-align: top; }
|
||||
th { background: #eeeeee; font-weight: bold; }
|
||||
.right { text-align: right; }
|
||||
.center { text-align: center; }
|
||||
.barcode { width: 42mm; height: 12mm; object-fit: contain; }
|
||||
.qr { width: 28mm; height: 28mm; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h1>Lieferschein</h1>
|
||||
<div><b>Nr.:</b> {{text:deliveryNumber}}</div>
|
||||
<div><b>Datum:</b> {{text:deliveryDate}}</div>
|
||||
</div>
|
||||
<img class="qr" alt="QR" src="{{qr:deliveryNumber}}">
|
||||
</div>
|
||||
|
||||
<div class="box"><b>Kunde:</b> {{text:customer.name}}</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:10mm">Pos.</th>
|
||||
<th style="width:32mm">Artikel</th>
|
||||
<th>Bezeichnung</th>
|
||||
<th style="width:18mm">Menge</th>
|
||||
<th style="width:38mm">Seriennummer</th>
|
||||
<th style="width:45mm">Barcode</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each:items}}
|
||||
<tr>
|
||||
<td class="center">{{text:pos}}</td>
|
||||
<td>{{text:partNumber}}</td>
|
||||
<td>{{text:description}}</td>
|
||||
<td class="right">{{text:quantity}}</td>
|
||||
<td>{{text:serialNumber}}</td>
|
||||
<td class="center"><img class="barcode" alt="Barcode" src="{{barcode:CODE_128:serialNumber:360x90}}"></td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user