wip: implement invoice generator for teamers
This commit is contained in:
1 parent
6c608063ad
commit
bbdd887dc2
25 files changed
+1584
-21
No files matched your search
@@ -0,0 +1,50 @@
|
||||
<!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>
|
||||
Reference in new issue
Block a user