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