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