diff --git a/hledger-lib/Ledger/Posting.hs b/hledger-lib/Ledger/Posting.hs index b296d204c..1a4227422 100644 --- a/hledger-lib/Ledger/Posting.hs +++ b/hledger-lib/Ledger/Posting.hs @@ -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