<%- include('layout', { title: 'Kontodetails - ' + account.name }) %> <% override body %>

Kontodetails: <%= account.name %>

Kontostand: <%= account.balance.toFixed(2) %> €

Erstellt am: <%= new Date(account.created_at).toLocaleString('de-DE') %>

Geld einzahlen Betrag abbuchen <% if (isAdmin) { %> Konto bearbeiten <% } %> Zurück zur Liste

Transaktionshistorie

<% transactions.forEach(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' %>
<% if (transactions.length === 0) { %>

Keine Transaktionen für dieses Konto.

<% } %> <% end %>