Skip to content

Commit 02f685f

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 304d25d commit 02f685f

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
@@ -394,7 +394,9 @@
394394
"Name": "Name",
395395
"Balance": "Balance",
396396
"CreateInvoice": "Create Invoice",
397-
"isCreditInvoice": "Is credit invoice"
397+
"isCreditInvoice": "Is credit invoice",
398+
"InvoiceUsersDescription": "Invoice user with oustanding debts.",
399+
"NoInvoiceableUsers": "Currently, there are no users with outstanding debts."
398400
},
399401
"pdf": {
400402
"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)