Praxissofttware/views/invoices/open-invoices.ejs

29 lines
651 B
Plaintext

<h1>🧾 Offene Rechnungen</h1>
<% if (invoices.length === 0) { %>
<p>Keine offenen Rechnungen 🎉</p>
<% } else { %>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Patient</th>
<th>Datum</th>
<th>Betrag</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<% invoices.forEach(inv => { %>
<tr>
<td><%= inv.id %></td>
<td><%= inv.firstname %> <%= inv.lastname %></td>
<td><%= inv.invoice_date %></td>
<td><%= inv.total_amount_formatted %> €</td>
<td>offen</td>
</tr>
<% }) %>
</tbody>
</table>
<% } %>