- 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

@ -1,5 +1,5 @@
<template>
<SendEstimateModal />
<SendEstimateModal @update="updateSentEstimate" />
<BasePage v-if="estimateData" class="xl:pl-96 xl:ml-8">
<BasePageHeader :title="pageTitle">
<template #actions>
@ -526,4 +526,15 @@ async function removeEstimate(id) {
}
})
}
function updateSentEstimate() {
let pos = estimateList.value.findIndex(
(estimate) => estimate.id === estimateData.value.id
)
if (estimateList.value[pos]) {
estimateList.value[pos].status = 'SENT'
estimateData.value.status = 'SENT'
}
}
</script>