yammat/templates/journal.hamlet

41 lines
1.2 KiB
Text
Raw Normal View History

2015-04-04 04:46:33 +00:00
$doctype 5
<h3>Journal
$if not $ L.null entries
<table>
<thead>
<tr>
2015-04-09 22:40:58 +00:00
<th>_{MsgTime}
<th>_{MsgDescription}
<th>_{MsgValueIn $ appCurrency $ appSettings master}
2015-04-09 19:39:39 +00:00
$forall (eTransCash) <- list
$case eTransCash
$of Left trans
<tr>
<td>#{formatTime defaultTimeLocale "%A %F %H:%M" $ transactionTime trans}
<td>#{transactionDescription trans}
<td>#{formatIntCurrency (transactionAmount trans)} #{appCurrency $ appSettings master}
$of Right cash
<tr #check>
<td colspan="2">
2015-04-09 22:40:58 +00:00
_{MsgCashCheckOf $ formatTime defaultTimeLocale "%A %F %H:%M" $ cashierCreated cash}:
2015-04-09 19:39:39 +00:00
<td>#{formatIntCurrency (cashierBalance cash)} #{appCurrency $ appSettings master}
2015-04-09 22:40:58 +00:00
2015-04-04 04:46:33 +00:00
<tfoot>
<tr>
2015-04-09 22:40:58 +00:00
<td colspan="2">_{MsgTotalValue}:
<td>#{formatIntCurrency (fromIntegral total)} #{appCurrency $ appSettings master}
2015-04-04 04:46:33 +00:00
<p>
2015-04-09 22:40:58 +00:00
_{MsgCashStock}: #{formatIntCurrency (fromIntegral cashBalance)} #{appCurrency $ appSettings master}
2015-04-04 04:46:33 +00:00
<ul>
<li>
<a href=@{PayoutR}>
2015-04-09 22:40:58 +00:00
_{MsgPayoutFromCash}
<li>
<a href=@{CashCheckR}>
2015-04-09 22:40:58 +00:00
_{MsgCashCheck}
2015-04-04 04:46:33 +00:00
$else
2015-04-09 22:40:58 +00:00
<p>_{MsgNothingToShow}