From 5ee79797e1d403332fc0fe4a6aaf414dcaba8f9b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 16 Jan 2019 09:06:54 -0800 Subject: [PATCH] better fix for #949, don't reverse same-day assertions with --auto --- hledger-lib/Hledger/Read/Common.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hledger-lib/Hledger/Read/Common.hs b/hledger-lib/Hledger/Read/Common.hs index 9c9b8aa5e..a42ef8de5 100644 --- a/hledger-lib/Hledger/Read/Common.hs +++ b/hledger-lib/Hledger/Read/Common.hs @@ -270,13 +270,12 @@ parseAndFinaliseJournal parser iopts f txt = do -- first pass applyTransactionModifiers <$> (journalBalanceTransactions False $ - -- journalReverse $ -- can skip this one + journalReverse $ + journalAddFile (f, txt) $ journalApplyCommodityStyles pj) -- second pass >>= (\j -> journalBalanceTransactions (not $ ignore_assertions_ iopts) $ - journalReverse $ - journalAddFile (f, txt) $ journalSetLastReadTime t $ j)