<% if (typeof success === 'undefined' || !success) { %>
<% if (typeof transactions !== 'undefined' && transactions.length > 0) { %>
<% } else { %>
Kontostand abfragen
Bitte geben Sie Ihre 4-stellige PIN ein, um Ihren Kontostand und die letzten Buchungen abzufragen.
<% if (typeof error !== 'undefined' && error) { %><%= error %>
<% } %>
<% } else { %>
Kontostand für <%= typeof account !== 'undefined' ? account.name : 'Unbekannt' %>
Ihr aktueller Kontostand beträgt:
<%= typeof account !== 'undefined' ? account.balance.toFixed(2) : '0.00' %> €
Letzte Buchungen:
| Datum | Typ | Betrag | Beschreibung | Artikel | Durchgeführt von |
|---|---|---|---|---|---|
| <%= new Date(transaction.created_at).toLocaleString('de-DE') %> | <%= transaction.type === 'deposit' ? 'Einzahlung' : 'Abbuchung' %> | <%= transaction.amount.toFixed(2) %> € | <%= transaction.description %> | <%= transaction.item_name || '-' %> | <%= transaction.created_by_name || 'System' %> |
Keine Buchungen in den letzten 10 Transaktionen.
<% } %> <% } %>