Compare commits

..

5 Commits

Author SHA1 Message Date
victorAnumudu 6f8615ebc5 updated loan and loan details page 2025-05-05 12:29:26 +01:00
CHIEFSOFT\ameye dc4b8b67c0 TENOR ADDED 2025-05-03 20:47:44 -04:00
CHIEFSOFT\ameye 6f9393606f Paid At 2025-05-03 08:05:16 -04:00
CHIEFSOFT\ameye 7bc0e90fe7 Added loan origin 2025-05-03 07:40:15 -04:00
ameye db3afdda2f Merge branch 'offer-page' of DigiFi/digifi-FirstOffice into master 2025-04-30 19:41:26 +00:00
4 changed files with 24 additions and 11 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export default function LoansCom() {
<td className="px-2">
<div className="text-right">
<div className="font-normal text-gray-500">{formatNumber(item?.product_id)}</div>
<div className="font-normal text-gray-500">{formatNumber(0)}</div>
<div className="font-normal text-gray-500">{item?.tenor} days</div>
</div>
</td>
<td className="px-2">
@@ -48,9 +48,9 @@ export default function LoanChargeDetails({transactionID}) {
<th scope="col" className="px-2 text-right">
Added
</th>
<th scope="col" className="px-2 text-right">
{/* <th scope="col" className="px-2 text-right">
Action
</th>
</th> */}
</tr>
</thead>
<tbody>
@@ -77,18 +77,18 @@ export default function LoanChargeDetails({transactionID}) {
<div className="font-normal text-gray-500">{getDateFromDateString(item?.created_at)}</div>
</div>
</td>
<td className="px-2 text-right">
{/* <td className="px-2 text-right">
<div className='flex items-center justify-end gap-3 md:gap-4'>
<div className='p-2 flex justify-center items-center text-slate-500 bg-white-body dark:text-white-body dark:bg-black-body rounded-md'>
<Icons name='eye' />
</div>
</div>
</td>
</td> */}
</tr>
))
:
<tr className="py-2 border-t border-dashed border-slate-300">
<td className="px-3 py-2" colSpan={4}>
<td className="px-3 py-2" colSpan={3}>
<div className="flex justify-center items-center">
No Record Found
</div>
@@ -41,16 +41,16 @@ export default function LoanDetails({transactionID}) {
Name
</th>
<th scope="col" className="px-2 text-right">
Loan Amount
Loan/Eligible Amount
</th>
<th scope="col" className="px-2 text-right">
Product/Tenor
</th>
<th scope="col" className="px-2 text-right">
Repay/Install Amount
Repay/Install Amount.
</th>
<th scope="col" className="px-2 text-right">
Added
Added/Due
</th>
<th scope="col" className="px-2 text-right">
Action
@@ -66,6 +66,8 @@ export default function LoanDetails({transactionID}) {
<div className="text-left">
<div className="text-base font-semibold">{item?.account_id || ''}</div>
<div className="font-normal text-gray-500">{item?.id} : {item?.transaction_id}</div>
<div className="font-semibold text-red-500">ORIGIN : {item?.original_transaction}</div>
<div className="font-bold text-blue-500">OFFER : {item?.offer_id}</div>
</div>
</div>
</td>
@@ -73,12 +75,14 @@ export default function LoanDetails({transactionID}) {
<div className="text-right">
{/* <div className="text-base font-semibold">{formatNumber(item?.initial_loan_amount)}</div> */}
<div className="font-normal text-gray-500">{formatNumber(item?.initial_loan_amount)}</div>
<div className="font-semibold text-red-500">{formatNumber(item?.eligible_amount)}</div>
</div>
</td>
<td className="px-2">
<div className="text-right">
<div className="font-normal text-gray-500">{formatNumber(item?.product_id)}</div>
<div className="font-normal text-gray-500">{formatNumber(0)}</div>
<div className="font-normal text-gray-500">{item?.tenor} days</div>
</div>
</td>
<td className="px-2">
@@ -90,6 +94,7 @@ export default function LoanDetails({transactionID}) {
<td className="px-2">
<div className="text-right">
<div className="font-normal text-gray-500">{getDateFromDateString(item?.created_at)}</div>
<div className="font-semibold text-red-500">{getDateFromDateString(item?.due_date)}</div>
</div>
</td>
<td className="px-2 text-right">
@@ -55,6 +55,9 @@ export default function RepaymentScheduleDetails({transactionID}) {
<th scope="col" className="px-2 text-right">
Due Date
</th>
<th scope="col" className="px-2 text-right">
Paid Date
</th>
<th scope="col" className="px-2 text-right">
Action
</th>
@@ -87,6 +90,11 @@ export default function RepaymentScheduleDetails({transactionID}) {
<div className="font-normal text-gray-500">{getDateFromDateString(item?.due_date)}</div>
</div>
</td>
<td className="px-2">
<div className="text-right">
<div className="font-normal text-gray-500">{item?.paid_at ? getDateFromDateString(item?.paid_at) : 'Not available'}</div>
</div>
</td>
<td className="px-2 text-right">
<div className='flex items-center justify-end gap-3 md:gap-4'>
<div className='p-2 flex justify-center items-center text-slate-500 bg-white-body dark:text-white-body dark:bg-black-body rounded-md'>
@@ -98,7 +106,7 @@ export default function RepaymentScheduleDetails({transactionID}) {
))
:
<tr className="py-2 border-t border-dashed border-slate-300">
<td className="px-3 py-2" colSpan={5}>
<td className="px-3 py-2" colSpan={6}>
<div className="flex justify-center items-center">
No Record Found
</div>