mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -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
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<SendInvoiceModal />
|
||||
<SendInvoiceModal @update="updateSentInvoiceStatus" />
|
||||
<div class="relative table-container">
|
||||
<BaseTable
|
||||
ref="table"
|
||||
@ -97,4 +97,14 @@ function hasAtleastOneAbility() {
|
||||
function refreshTable() {
|
||||
table.value && table.value.refresh()
|
||||
}
|
||||
|
||||
function updateSentInvoiceStatus(id) {
|
||||
let pos = recurringInvoiceStore.newRecurringInvoice.invoices.findIndex(
|
||||
(invoice) => invoice.id === id
|
||||
)
|
||||
|
||||
if (recurringInvoiceStore.newRecurringInvoice.invoices[pos]) {
|
||||
recurringInvoiceStore.newRecurringInvoice.invoices[pos].status = 'SENT'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user