mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-12 19:08:34 +03:00
journal: fill unassignable list from account names.
This commit is contained in:
parent
597b1b8ccd
commit
07d0a003a3
@ -642,7 +642,7 @@ journalBalanceTransactionsST assrt j createStore storeIn extract =
|
||||
(storeIn txStore)
|
||||
assrt
|
||||
(Just $ journalCommodityStyles j)
|
||||
S.empty
|
||||
(getModifierAccountNames j)
|
||||
flip R.runReaderT env $ do
|
||||
dated <- fmap snd . sortBy (comparing fst) . concat
|
||||
<$> mapM' discriminateByDate (jtxns j)
|
||||
@ -651,6 +651,14 @@ journalBalanceTransactionsST assrt j createStore storeIn extract =
|
||||
where
|
||||
size = genericLength $ journalPostings j
|
||||
|
||||
|
||||
-- | Collect account names in account modifiers into a set
|
||||
getModifierAccountNames :: Journal -> S.Set AccountName
|
||||
getModifierAccountNames j = S.fromList $
|
||||
map paccount $
|
||||
concatMap tmpostingrules $
|
||||
jtxnmodifiers j
|
||||
|
||||
-- | Monad transformer stack with a reference to a mutable hashtable
|
||||
-- of current account balances and a mutable array of finished
|
||||
-- transactions in original parsing order.
|
||||
|
Loading…
Reference in New Issue
Block a user