Files
myep-team/templates/pdf/invoice_generated.html.twig
T

51 lines
1.7 KiB
Twig

<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<style>
body { font-family: DejaVu Sans, sans-serif; font-size: 12px; color: #111827; }
h1 { font-size: 20px; margin: 0 0 10px; }
.muted { color: #6b7280; }
.section { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { border: 1px solid #d1d5db; padding: 6px; text-align: left; }
th { background: #f3f4f6; }
.right { text-align: right; }
.total-row td { font-weight: bold; }
</style>
</head>
<body>
<h1>Honorarnote</h1>
<div class="muted">Einsatz: {{ assignment.destination }}</div>
<div class="muted">Teamer: {{ teamer }}</div>
<div class="muted">Datum: {{ "now"|date("d.m.Y") }}</div>
<div class="section">
<table>
<thead>
<tr>
<th>Bezeichnung</th>
<th class="right">Betrag</th>
<th class="right">Anzahl</th>
<th class="right">Zeilensumme</th>
</tr>
</thead>
<tbody>
{% for item in invoice.items %}
<tr>
<td>{{ item.labelSnapshot }}</td>
<td class="right">{{ item.unitPriceCentsSnapshot|format_money }}</td>
<td class="right">{{ item.quantity }}</td>
<td class="right">{{ item.lineTotalCents|format_money }}</td>
</tr>
{% endfor %}
<tr class="total-row">
<td colspan="3" class="right">Gesamt</td>
<td class="right">{{ invoice.totalCents|format_money }}</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>