sumPostings should always preserve highest precision
This commit is contained in:
parent
cc8f4926cf
commit
6476d638f9
@ -67,7 +67,7 @@ accountNamesFromPostings :: [Posting] -> [AccountName]
|
||||
accountNamesFromPostings = nub . map paccount
|
||||
|
||||
sumPostings :: [Posting] -> MixedAmount
|
||||
sumPostings = sum . map pamount
|
||||
sumPostings = sumMixedAmountsPreservingHighestPrecision . map pamount
|
||||
|
||||
postingDate :: Posting -> Day
|
||||
postingDate p = maybe nulldate tdate $ ptransaction p
|
||||
|
||||
Loading…
Reference in New Issue
Block a user