From 8001b2ede966bb04b2c430c25e273d0a32f43152 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 6 Dec 2021 22:29:56 +0000 Subject: [PATCH] fix: make min quantity 0 instead of 1 --- .../components/estimate-invoice-common/CreateItemRow.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue b/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue index 6f8bf14d..3ecc3ae4 100644 --- a/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue +++ b/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue @@ -53,7 +53,7 @@ :content-loading="loading" type="number" small - min="1" + min="0" step="any" @change="syncItemToStore()" @input="v$.quantity.$touch()" @@ -352,7 +352,7 @@ const rules = { required: helpers.withMessage(t('validation.required'), required), minValue: helpers.withMessage( t('validation.qty_must_greater_than_zero'), - minValue(1) + minValue(0) ), maxLength: helpers.withMessage( t('validation.amount_maxlength'),