Frühstückskonten Verwaltung

<% if (typeof success === 'undefined' || !success) { %>

Kontostand abfragen

Bitte geben Sie Ihre 4-stellige PIN ein, um Ihren Kontostand und die letzten Buchungen abzufragen.

<% if (typeof error !== 'undefined' && error) { %>
<%= error %>
<% } %>

Zur Mitarbeiter-Anmeldung

<% } else { %>

Kontostand für <%= typeof account !== 'undefined' ? account.name : 'Unbekannt' %>

Ihr aktueller Kontostand beträgt:

<%= typeof account !== 'undefined' ? account.balance.toFixed(2) : '0.00' %> €

<% if (typeof transactions !== 'undefined' && transactions.length > 0) { %>

Letzte Buchungen:

<% transactions.forEach(function(transaction) { %> <% }); %>
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' %>
<% } else { %>

Keine Buchungen in den letzten 10 Transaktionen.

<% } %> <% } %>