better fix for #949, don't reverse same-day assertions with --auto

This commit is contained in:
Simon Michael 2019-01-16 09:06:54 -08:00
parent 95643affad
commit 5ee79797e1

View File

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