add: keep using historical txn accounts as defaults even after a custom amount is entered
This commit is contained in:
parent
baf16ab755
commit
ebf42046d8
@ -231,7 +231,7 @@ amountAndCommentWizard EntryState{..} = do
|
|||||||
case esSimilarTransaction of
|
case esSimilarTransaction of
|
||||||
Nothing -> (Nothing,False)
|
Nothing -> (Nothing,False)
|
||||||
Just Transaction{tpostings=ps} -> (if length ps >= pnum then Just (ps !! (pnum-1)) else Nothing
|
Just Transaction{tpostings=ps} -> (if length ps >= pnum then Just (ps !! (pnum-1)) else Nothing
|
||||||
,all (\(a,b) -> paccount a == paccount b && pamount a == pamount b) $ zip esPostings ps)
|
,all (\(a,b) -> pamount a == pamount b) $ zip esPostings ps)
|
||||||
def = case (esArgs, mhistoricalp, followedhistoricalsofar) of
|
def = case (esArgs, mhistoricalp, followedhistoricalsofar) of
|
||||||
(d:_,_,_) -> d
|
(d:_,_,_) -> d
|
||||||
(_,Just hp,True) -> showamt $ pamount hp
|
(_,Just hp,True) -> showamt $ pamount hp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user