add: don't apply a default commodity to amounts on entry (fixes #138)
This commit is contained in:
parent
f7406f77cf
commit
cceff52403
@ -265,7 +265,8 @@ amountAndCommentWizard EntryState{..} = do
|
||||
maybeRestartTransaction $
|
||||
line $ green $ printf "Amount %d%s: " pnum (showDefault def)
|
||||
where
|
||||
parseAmountAndComment = either (const Nothing) Just . parseWithCtx (jContext esJournal) amountandcommentp
|
||||
parseAmountAndComment = either (const Nothing) Just . parseWithCtx nodefcommodityctx amountandcommentp
|
||||
nodefcommodityctx = (jContext esJournal){ctxCommodityAndStyle=Nothing}
|
||||
amountandcommentp = do
|
||||
a <- amountp
|
||||
many spacenonewline
|
||||
|
||||
Loading…
Reference in New Issue
Block a user