mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Merge branch 'qty-fix' into 'master'
Qty fix See merge request mohit.panjvani/crater-web!1331
This commit is contained in:
@ -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'),
|
||||
|
||||
@ -347,7 +347,7 @@ const rules = computed(() => {
|
||||
required: helpers.withMessage(t('validation.required'), required),
|
||||
between: helpers.withMessage(
|
||||
t('validation.payment_greater_than_due_amount'),
|
||||
between(1, paymentStore.currentPayment.maxPayableAmount)
|
||||
between(0, paymentStore.currentPayment.maxPayableAmount)
|
||||
),
|
||||
},
|
||||
exchange_rate: {
|
||||
|
||||
Reference in New Issue
Block a user