add: don't apply a default commodity to amounts on entry (fixes #138)
This commit is contained in:
parent
09ebd3e049
commit
120b3b8377
@ -265,7 +265,8 @@ amountAndCommentWizard EntryState{..} = do
|
|||||||
maybeRestartTransaction $
|
maybeRestartTransaction $
|
||||||
line $ green $ printf "Amount %d%s: " pnum (showDefault def)
|
line $ green $ printf "Amount %d%s: " pnum (showDefault def)
|
||||||
where
|
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
|
amountandcommentp = do
|
||||||
a <- amountp
|
a <- amountp
|
||||||
many spacenonewline
|
many spacenonewline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user