add: don't apply a default commodity to amounts on entry (fixes #138)

This commit is contained in:
Simon Michael 2014-05-03 15:48:20 -07:00
parent 09ebd3e049
commit 120b3b8377

View File

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