Customer tax id validation (#220)

* Remove tax_id validation

* Remove validation leftovers
This commit is contained in:
Darko Gjorgjijoski
2024-11-17 00:17:25 +01:00
committed by GitHub
parent be2e1df442
commit ed4a59574c

View File

@@ -160,10 +160,6 @@
<BaseInputGroup <BaseInputGroup
:label="$t('customers.tax_id')" :label="$t('customers.tax_id')"
:error="
v$.currentCustomer.tax_id.$error &&
v$.currentCustomer.tax_id.$errors[0].$message
"
:content-loading="isFetchingInitialData" :content-loading="isFetchingInitialData"
> >
<BaseInput <BaseInput
@@ -171,10 +167,9 @@
:content-loading="isFetchingInitialData" :content-loading="isFetchingInitialData"
type="text" type="text"
name="tax_id" name="tax_id"
:invalid="v$.currentCustomer.tax_id.$error"
@input="v$.currentCustomer.tax_id.$touch()"
/> />
</BaseInputGroup> </BaseInputGroup>
</BaseInputGrid> </BaseInputGrid>
</div> </div>
@@ -663,9 +658,6 @@ const rules = computed(() => {
minLength(3) minLength(3)
), ),
}, },
tax_id: {
required: helpers.withMessage(t('validation.required'), required),
},
currency_id: { currency_id: {
required: helpers.withMessage(t('validation.required'), required), required: helpers.withMessage(t('validation.required'), required),
}, },