mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 05:39:31 +03:00
journal: Ignore AUTO commodity when strict checking
AUTO commodity is a placeholder for postings with missing amounts. It should be ignored when doing a strict commodity check. Fixes #1419
This commit is contained in:
parent
8306420b61
commit
2084b845e0
@ -425,7 +425,7 @@ journalCheckCommoditiesDeclared j =
|
||||
mfirstundeclaredcomm =
|
||||
headMay $ filter (not . (`elem` cs)) $ catMaybes $
|
||||
(acommodity . baamount <$> pbalanceassertion) :
|
||||
(map (Just . acommodity) $ amounts pamount)
|
||||
(map (Just . acommodity) . filter (/= missingamt) $ amounts pamount)
|
||||
cs = journalCommoditiesDeclared j
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user