mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
fix: quantity min value
This commit is contained in:
@ -53,7 +53,7 @@
|
|||||||
:content-loading="loading"
|
:content-loading="loading"
|
||||||
type="number"
|
type="number"
|
||||||
small
|
small
|
||||||
min="1"
|
min="0.1"
|
||||||
step="any"
|
step="any"
|
||||||
@change="syncItemToStore()"
|
@change="syncItemToStore()"
|
||||||
@input="v$.quantity.$touch()"
|
@input="v$.quantity.$touch()"
|
||||||
@ -352,7 +352,7 @@ const rules = {
|
|||||||
required: helpers.withMessage(t('validation.required'), required),
|
required: helpers.withMessage(t('validation.required'), required),
|
||||||
minValue: helpers.withMessage(
|
minValue: helpers.withMessage(
|
||||||
t('validation.qty_must_greater_than_zero'),
|
t('validation.qty_must_greater_than_zero'),
|
||||||
minValue(1)
|
minValue(0.1)
|
||||||
),
|
),
|
||||||
maxLength: helpers.withMessage(
|
maxLength: helpers.withMessage(
|
||||||
t('validation.amount_maxlength'),
|
t('validation.amount_maxlength'),
|
||||||
|
|||||||
Reference in New Issue
Block a user