lib: tweak posting-date-no-amount-balance-assertion error (#894)
This commit is contained in:
parent
f6e095e794
commit
36fdeceb6c
@ -636,8 +636,8 @@ discriminateByDate tx
|
|||||||
| True = do
|
| True = do
|
||||||
when (any (isJust . pdate) $ tpostings tx) $
|
when (any (isJust . pdate) $ tpostings tx) $
|
||||||
throwError $ unlines $
|
throwError $ unlines $
|
||||||
["Not supported: Transactions with balance assignments "
|
["Sorry, a dated posting with a balance assignment and no explicit amount is not"
|
||||||
,"AND dated postings without amount:\n"
|
,"allowed. Write the amount, or remove the posting date or balance assignment:\n"
|
||||||
, showTransaction tx]
|
, showTransaction tx]
|
||||||
return
|
return
|
||||||
[(tdate tx, Right $ tx { tpostings = removePrices <$> tpostings tx })]
|
[(tdate tx, Right $ tx { tpostings = removePrices <$> tpostings tx })]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user