mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11: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
@ -299,7 +299,7 @@ const userStore = useUserStore()
|
||||
|
||||
let filters = reactive({
|
||||
customer_id: '',
|
||||
status: 'DRAFT',
|
||||
status: '',
|
||||
from_date: '',
|
||||
to_date: '',
|
||||
invoice_number: '',
|
||||
|
||||
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user