yammat/templates/journal.hamlet
2015-04-04 08:25:10 +02:00

28 lines
826 B
Text

$doctype 5
<h3>Journal
$if not $ L.null entries
<table>
<thead>
<tr>
<th>Zeit
<th>Beschreibung
<th>Betrag in #{appCurrency $ appSettings master}
$forall (Entity eId entry) <- entries
<tr>
<td>#{formatTime defaultTimeLocale "%A %F %H:%M" $ transactionTime entry}
<td>#{transactionDescription entry}
<td>#{show ((fromIntegral (transactionAmount entry)) / 100)} #{appCurrency $ appSettings master}
<tfoot>
<tr>
<td colspan="2">Gesamtbetrag:
<td>#{show ((fromIntegral total) / 100)} #{appCurrency $ appSettings master}
<p>
Kassenbestand: #{show ((fromIntegral cashBalance) / 100)} #{appCurrency $ appSettings master}
<p>
<a href=@{PayoutR}>
Aus der kasse auszahlen
$else
<p>Noch keine Bewegungen zu verzeichnen