mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
fix: quantity decimal value not allow
This commit is contained in:
@ -54,6 +54,7 @@
|
||||
type="number"
|
||||
small
|
||||
min="1"
|
||||
step="any"
|
||||
@change="syncItemToStore()"
|
||||
@input="v$.quantity.$touch()"
|
||||
/>
|
||||
@ -257,7 +258,7 @@ const quantity = computed({
|
||||
return props.itemData.quantity
|
||||
},
|
||||
set: (newValue) => {
|
||||
updateItemAttribute('quantity', parseInt(newValue))
|
||||
updateItemAttribute('quantity', parseFloat(newValue))
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user