 									Dom.onTap
 										cb: !->
 											value = undefined
+											oldValue = undefined
 											update = Obs.create(false)
 											Obs.observe !->
 												update.get()
-												if value?
-													log "received update"
-													if (value+"").indexOf(",") isnt -1
-														value = (value+"").replace(",", ".")
-													number = +value
+												if oldValue?
+													number = +oldValue
 													if (not (isNaN(number)))
-														#log "number=", number, ", numberIsNaN=", number is NaN
 														if number is 0
 															byO.remove user.key()
 														else
 															byO.set user.key(), number
 													else
-														Modal.show "Incorrect input: \""+value+"\", use a number"
-													#log "Amount updated=", JSON.stringify(byO)
+														Modal.show "Incorrect input: \""+oldValue+"\", use a number"
 												# Do something
 											Modal.show tr("Amount paid by %1?", formatName(user.key())), !->
 												Dom.div !->

														if Db.shared.get("currency")
															currency = Db.shared.get("currency")
														Dom.text currency
														Dom.style 
															margin: '20px 5px 0px 0px'
															fontSize: '21px'
													Dom.div !->
														Dom.style Flex: true
														defaultValue = undefined
														if (byO.peek(user.key())+"") isnt "true" and ((byO.peek(user.key())+"").substr(-1) isnt "%")
															defaultValue = +byO.peek(user.key())
														inputField = Form.input
															name: 'paidby'
															type: 'number'
															text: '0.-'
															value: defaultValue
															onChange: (v) ->
																if v
																	value = v
																return
											, (value) !->
												log "value="+value
												if value isnt null and value isnt undefined and value is 'ok'
													log "update"
													update.set(true)
											, ['ok', "Ok", 'cancel', "Cancel"]
									Dom.style

								Dom.style
									Flex: true
								Dom.div !->
									Dom.style
										Flex: true
										overflow: 'hidden'
										textOverflow: 'ellipsis'
