From abde91f46bddffdb04169b11ab19e74cb65ac69c Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sat, 3 May 2025 14:19:51 +0100 Subject: [PATCH] loan table tenor field added --- src/components/loanscom/LoansCom.jsx | 2 +- .../transactionDetails/LoanChargeDetails.jsx | 10 +++++----- src/components/transactionDetails/LoanDetails.jsx | 2 +- .../transactionDetails/RepaymentScheduleDetails.jsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/loanscom/LoansCom.jsx b/src/components/loanscom/LoansCom.jsx index 0eb296c..de1b61f 100644 --- a/src/components/loanscom/LoansCom.jsx +++ b/src/components/loanscom/LoansCom.jsx @@ -83,7 +83,7 @@ export default function LoansCom() {
{formatNumber(item?.product_id)}
-
{formatNumber(0)}
+
{formatNumber(item?.tenor)}
diff --git a/src/components/transactionDetails/LoanChargeDetails.jsx b/src/components/transactionDetails/LoanChargeDetails.jsx index 751fb8c..9bb90bf 100644 --- a/src/components/transactionDetails/LoanChargeDetails.jsx +++ b/src/components/transactionDetails/LoanChargeDetails.jsx @@ -48,9 +48,9 @@ export default function LoanChargeDetails({transactionID}) { Added - + {/* Action - + */} @@ -77,18 +77,18 @@ export default function LoanChargeDetails({transactionID}) {
{getDateFromDateString(item?.created_at)}
- + {/*
- + */} )) : - +
No Record Found
diff --git a/src/components/transactionDetails/LoanDetails.jsx b/src/components/transactionDetails/LoanDetails.jsx index 3f5fa7d..7a0d7ec 100644 --- a/src/components/transactionDetails/LoanDetails.jsx +++ b/src/components/transactionDetails/LoanDetails.jsx @@ -79,7 +79,7 @@ export default function LoanDetails({transactionID}) {
{formatNumber(item?.product_id)}
-
{formatNumber(0)}
+
{formatNumber(item?.tenor)}
diff --git a/src/components/transactionDetails/RepaymentScheduleDetails.jsx b/src/components/transactionDetails/RepaymentScheduleDetails.jsx index eeaff3a..7e9a41e 100644 --- a/src/components/transactionDetails/RepaymentScheduleDetails.jsx +++ b/src/components/transactionDetails/RepaymentScheduleDetails.jsx @@ -92,7 +92,7 @@ export default function RepaymentScheduleDetails({transactionID}) {
-
{getDateFromDateString(item?.paid_at)}
+
{item?.paid_at ? getDateFromDateString(item?.paid_at) : 'NULL'}
-- 2.34.1