made supplier digest more beautiful
This commit is contained in:
parent
f42b79d1c8
commit
34a5b61993
1 changed files with 13 additions and 10 deletions
|
@ -30,11 +30,13 @@ getSupplierDigestR sId = do
|
||||||
bevs <- runDB $ selectList [BeverageSupplier ==. (Just sId)] [Asc BeverageIdent]
|
bevs <- runDB $ selectList [BeverageSupplier ==. (Just sId)] [Asc BeverageIdent]
|
||||||
digests <- return $ map genBevDigest bevs
|
digests <- return $ map genBevDigest bevs
|
||||||
w <- return $ [whamlet|$newline always
|
w <- return $ [whamlet|$newline always
|
||||||
|
<p>
|
||||||
#{supplierIdent sup}<br>
|
#{supplierIdent sup}<br>
|
||||||
#{unTextarea $ supplierAddress sup}<br>
|
#{unTextarea $ supplierAddress sup}<br>
|
||||||
#{supplierTel sup}<br>
|
#{supplierTel sup}<br>
|
||||||
#{supplierEmail sup}<br>
|
#{supplierEmail sup}<br>
|
||||||
<hr>
|
<hr>
|
||||||
|
<p>
|
||||||
<b>
|
<b>
|
||||||
_{MsgCustomerId}: #{supplierCustomerId sup}
|
_{MsgCustomerId}: #{supplierCustomerId sup}
|
||||||
<table>
|
<table>
|
||||||
|
@ -55,6 +57,7 @@ getSupplierDigestR sId = do
|
||||||
<td>#{T.pack $ show $ bdCrates dig}
|
<td>#{T.pack $ show $ bdCrates dig}
|
||||||
<td>#{formatIntCurrency $ fromMaybe 0 $ beveragePricePerCrate $ bdBev dig} #{appCurrency $ appSettings master}
|
<td>#{formatIntCurrency $ fromMaybe 0 $ beveragePricePerCrate $ bdBev dig} #{appCurrency $ appSettings master}
|
||||||
<td>#{formatIntCurrency $ bdTotal dig} #{appCurrency $ appSettings master}
|
<td>#{formatIntCurrency $ bdTotal dig} #{appCurrency $ appSettings master}
|
||||||
|
<tr>
|
||||||
<td colspan="3">_{MsgTotalCrates}
|
<td colspan="3">_{MsgTotalCrates}
|
||||||
<td>#{T.pack $ show $ sum $ map bdCrates digests}
|
<td>#{T.pack $ show $ sum $ map bdCrates digests}
|
||||||
<td>_{MsgBuyValue}
|
<td>_{MsgBuyValue}
|
||||||
|
|
Loading…
Reference in a new issue