mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 04:46:31 +03:00
the parser was too strict about decimal places when balance-checking
This commit is contained in:
parent
84e093fff1
commit
3bcc3277ac
@ -42,7 +42,7 @@ isEntryBalanced :: Entry -> Bool
|
||||
isEntryBalanced (Entry {etransactions=ts}) = isZeroAmount sum && numcommodities==1
|
||||
where
|
||||
sum = sumLedgerTransactions ts
|
||||
numcommodities = length $ nub $ map (commodity . tamount) ts
|
||||
numcommodities = length $ nub $ map (symbol . commodity . tamount) ts
|
||||
|
||||
autofillEntry :: Entry -> Entry
|
||||
autofillEntry e@(Entry {etransactions=ts}) = e{etransactions=autofillTransactions ts}
|
||||
|
Loading…
Reference in New Issue
Block a user