mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
detect precisions from the whole ledger, not just the filtered part
This commit is contained in:
parent
fcdc4dc273
commit
7819abd80f
@ -70,7 +70,7 @@ parseLedgerAndDo :: [Opt] -> [String] -> ([Opt] -> [String] -> Ledger -> IO ())
|
||||
parseLedgerAndDo opts args cmd =
|
||||
ledgerFilePathFromOpts opts >>= parseLedgerFile >>= either printParseError runcmd
|
||||
where
|
||||
runcmd = cmd opts args . cacheLedger apats . canonicaliseAmounts . filterRawLedger b e dpats c r
|
||||
runcmd = cmd opts args . cacheLedger apats . filterRawLedger b e dpats c r . canonicaliseAmounts
|
||||
b = beginDateFromOpts opts
|
||||
e = endDateFromOpts opts
|
||||
(apats,dpats) = parseAccountDescriptionArgs args
|
||||
|
Loading…
Reference in New Issue
Block a user