mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
add overdue
This commit is contained in:
@ -237,6 +237,14 @@
|
||||
:currency="row.data.currency"
|
||||
/>
|
||||
|
||||
<BasePaidStatusBadge
|
||||
v-if="row.data.overdue"
|
||||
status="OVERDUE"
|
||||
class="px-1 py-0.5 ml-2"
|
||||
>
|
||||
{{ $t('invoices.overdue') }}
|
||||
</BasePaidStatusBadge>
|
||||
|
||||
<BasePaidStatusBadge
|
||||
:status="row.data.paid_status"
|
||||
class="px-1 py-0.5 ml-2"
|
||||
@ -284,7 +292,7 @@ const showFilters = ref(false)
|
||||
const status = ref([
|
||||
{
|
||||
label: 'Status',
|
||||
options: ['DRAFT', 'DUE', 'SENT', 'VIEWED', 'OVERDUE', 'COMPLETED'],
|
||||
options: ['DRAFT', 'DUE', 'SENT', 'VIEWED', 'COMPLETED'],
|
||||
},
|
||||
{
|
||||
label: 'Paid Status',
|
||||
@ -527,10 +535,6 @@ function setActiveTab(val) {
|
||||
activeTab.value = t('invoices.viewed')
|
||||
break
|
||||
|
||||
case 'OVERDUE':
|
||||
activeTab.value = t('invoices.overdue')
|
||||
break
|
||||
|
||||
default:
|
||||
activeTab.value = t('general.all')
|
||||
break
|
||||
|
||||
@ -267,9 +267,7 @@ onSearched = debounce(onSearched, 500)
|
||||
>
|
||||
<BaseButton
|
||||
v-if="
|
||||
invoiceData.status === 'SENT' ||
|
||||
invoiceData.status === 'OVERDUE' ||
|
||||
invoiceData.status === 'VIEWED'
|
||||
invoiceData.status === 'SENT' || invoiceData.status === 'VIEWED'
|
||||
"
|
||||
variant="primary"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user