when reporting a balancing error, convert the error amount to cost
This commit is contained in:
parent
9fab50fb61
commit
d52283f314
@ -155,9 +155,9 @@ nonzerobalanceerror t = printf "could not balance this transaction (%s%s%s)" rms
|
|||||||
where
|
where
|
||||||
(rsum, _, bvsum) = transactionPostingBalances t
|
(rsum, _, bvsum) = transactionPostingBalances t
|
||||||
rmsg | isReallyZeroMixedAmountCost rsum = ""
|
rmsg | isReallyZeroMixedAmountCost rsum = ""
|
||||||
| otherwise = "real postings are off by " ++ show rsum
|
| otherwise = "real postings are off by " ++ show (costOfMixedAmount rsum)
|
||||||
bvmsg | isReallyZeroMixedAmountCost bvsum = ""
|
bvmsg | isReallyZeroMixedAmountCost bvsum = ""
|
||||||
| otherwise = "balanced virtual postings are off by " ++ show bvsum
|
| otherwise = "balanced virtual postings are off by " ++ show (costOfMixedAmount bvsum)
|
||||||
sep = if not (null rmsg) && not (null bvmsg) then "; " else ""
|
sep = if not (null rmsg) && not (null bvmsg) then "; " else ""
|
||||||
|
|
||||||
-- | Convert the primary date to either the actual or effective date.
|
-- | Convert the primary date to either the actual or effective date.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user