fix: make min quantity 0 instead of 1

This commit is contained in:
David Wheatley
2021-12-06 22:29:56 +00:00
committed by GitHub
parent 5a7b515a03
commit 8001b2ede9

View File

@ -53,7 +53,7 @@
:content-loading="loading" :content-loading="loading"
type="number" type="number"
small small
min="1" min="0"
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)
), ),
maxLength: helpers.withMessage( maxLength: helpers.withMessage(
t('validation.amount_maxlength'), t('validation.amount_maxlength'),