normalise amounts after adding them, why not

This commit is contained in:
Simon Michael 2008-10-18 09:02:00 +00:00
parent ebcf695240
commit cc81700d2a

View File

@ -136,7 +136,7 @@ sumAmounts :: [Amount] -> Amount
sumAmounts = sum . filter (not . isZeroAmount) sumAmounts = sum . filter (not . isZeroAmount)
sumMixedAmounts :: [MixedAmount] -> MixedAmount sumMixedAmounts :: [MixedAmount] -> MixedAmount
sumMixedAmounts = concat sumMixedAmounts = normaliseMixedAmount . concat
nullamt = [] nullamt = []