Skip to content

Commit

Permalink
Fix build for upcoming hledger release
Browse files Browse the repository at this point in the history
  • Loading branch information
hpdeifel committed Jun 1, 2020
1 parent 4048373 commit a965af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ transactionBalanced trans = HL.isTransactionBalanced Nothing trans
-- | Computes the sum of all postings in the transaction and inverts it
negativeAmountSum :: HL.Transaction -> HL.MixedAmount
negativeAmountSum trans =
let (rsum, _, _) = HL.transactionPostingBalances trans
let rsum = HL.sumPostings $ HL.realPostings trans
in HL.divideMixedAmount (-1) rsum

-- | Compare two transaction descriptions based on their number of occurences in
Expand Down

0 comments on commit a965af4

Please sign in to comment.