the parser was too strict about decimal places when balance-checking

This commit is contained in:
Simon Michael 2008-10-15 18:01:49 +00:00
parent 84e093fff1
commit 3bcc3277ac

View File

@ -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}