Fix an issue with due date + expiry date not setting correctly & mark as sent button issue

This commit is contained in:
yashkanakiya
2021-12-17 08:25:56 +00:00
committed by Mohit Panjwani
parent 4a85a5d2ab
commit 848970fc08
8 changed files with 15 additions and 17 deletions

View File

@ -101,6 +101,7 @@ async function onMarkAsSent() {
invoiceData.value.status = 'SENT'
isMarkAsSent.value = true
}
isMarkAsSent.value = false
})
}

View File

@ -186,9 +186,6 @@ const rules = {
invoice_date: {
required: helpers.withMessage(t('validation.required'), required),
},
due_date: {
required: helpers.withMessage(t('validation.required'), required),
},
reference_number: {
maxLength: helpers.withMessage(
t('validation.price_maxlength'),

View File

@ -26,8 +26,6 @@
<BaseInputGroup
:label="$t('invoices.due_date')"
:content-loading="isLoading"
required
:error="v.due_date.$error && v.due_date.$errors[0].$message"
>
<BaseDatePicker
v-model="invoiceStore.newInvoice.due_date"