- fix invoice status not updating issue

- date range selection issues on report for non-english languages
- fix invoice all tab issue (always showing draft even in all tab)
This commit is contained in:
Harsh Jagad
2022-02-24 05:22:32 +00:00
committed by Mohit Panjwani
parent 7202fdcbf2
commit 1322ed15dc
15 changed files with 268 additions and 61 deletions

View File

@ -299,7 +299,7 @@ const userStore = useUserStore()
let filters = reactive({
customer_id: '',
status: 'DRAFT',
status: '',
from_date: '',
to_date: '',
invoice_number: '',

View File

@ -212,13 +212,24 @@ function sortData() {
return true
}
function updateSentInvoice() {
let pos = invoiceList.value.findIndex(
(invoice) => invoice.id === invoiceData.value.id
)
if (invoiceList.value[pos]) {
invoiceList.value[pos].status = 'SENT'
invoiceData.value.status = 'SENT'
}
}
loadInvoices()
loadInvoice()
onSearched = debounce(onSearched, 500)
</script>
<template>
<SendInvoiceModal />
<SendInvoiceModal @update="updateSentInvoice" />
<BasePage v-if="invoiceData" class="xl:pl-96 xl:ml-8">
<BasePageHeader :title="pageTitle">