normalise amounts after adding them, why not
This commit is contained in:
parent
ebcf695240
commit
cc81700d2a
@ -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 = []
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user