web: don't show prices in the accounts sidebar (fixes #114)

This commit is contained in:
Simon Michael 2013-06-01 12:35:10 -07:00
parent c744451dfa
commit cc087826e0

View File

@ -532,7 +532,7 @@ numberTransactionsReportItems items = number 0 nulldate items
(prevdy,prevdm,_) = toGregorian prevd
mixedAmountAsHtml :: MixedAmount -> Html
mixedAmountAsHtml b = preEscapedString $ addclass $ intercalate "<br>" $ lines $ showMixedAmount b
mixedAmountAsHtml b = preEscapedString $ addclass $ intercalate "<br>" $ lines $ showMixedAmountWithoutPrice b
where addclass = printf "<span class=\"%s\">%s</span>" (c :: String)
c = case isNegativeMixedAmount b of Just True -> "negative amount"
_ -> "positive amount"