Skip to content

Commit e524dd1

Browse files
feat(dashboard/invoices): added description to invoice user table
feat(dashboard/invoices): added string to invoice user table if there are no users with outstanding debts
1 parent c6d5e04 commit e524dd1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/dashboard/src/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@
383383
"Name": "Name",
384384
"Balance": "Balance",
385385
"CreateInvoice": "Create Invoice",
386-
"isCreditInvoice": "Is credit invoice"
386+
"isCreditInvoice": "Is credit invoice",
387+
"InvoiceUsersDescription": "Invoice user with oustanding debts.",
388+
"NoInvoiceableUsers": "Currently, there are no users with outstanding debts."
387389
},
388390
"pdf": {
389391
"Table": "Table",

apps/dashboard/src/modules/financial/components/invoice/InvoiceUserTable.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<template>
22
<CardComponent :header="$t('c_invoiceInfo.InvoiceUsers')" class="w-5">
3+
<p class="my-0 font-italic text-sm ">{{ $t('c_invoiceInfo.InvoiceUsersDescription') }}</p>
4+
<p v-if="invoiceableUsersWithBalance.length === 0">{{ $t('c_invoiceInfo.NoInvoiceableUsers') }}</p>
35
<DataTable
6+
v-else
47
:value="invoiceableUsersWithBalance"
58
>
69
<Column field="user.id" :header="$t('c_invoiceInfo.id')"/>

0 commit comments

Comments
 (0)