mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 04:31:08 -04:00
- 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:
committed by
Mohit Panjwani
parent
7202fdcbf2
commit
1322ed15dc
@ -272,7 +272,7 @@ const router = useRouter()
|
||||
|
||||
let filters = reactive({
|
||||
customer_id: '',
|
||||
status: 'DRAFT',
|
||||
status: '',
|
||||
from_date: '',
|
||||
to_date: '',
|
||||
estimate_number: '',
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user