refactor(FE): Update customer payment types and exports

This commit is contained in:
rstubryan
2026-01-14 22:17:24 +07:00
parent a72fbec5ce
commit f1dba4012a
4 changed files with 16 additions and 29 deletions
@@ -412,9 +412,7 @@ const CustomerPaymentTab = () => {
return <div className='text-right'>{formatCurrency(value)}</div>;
},
footer: () => (
<div className='text-right font-semibold text-gray-900'>
{formatCurrency(summary.total_initial_amount) || '-'}
</div>
<div className='text-right font-semibold text-gray-900'>-</div>
),
},
{
@@ -510,7 +508,7 @@ const CustomerPaymentTab = () => {
status: getPaymentStatusIndicatorColor(value),
}}
>
{getPaymentStatusText(value)}
<span>{getPaymentStatusText(value)}</span>
</Badge>
);
},
@@ -729,8 +727,6 @@ const CustomerPaymentTab = () => {
const summary = customerReport.summary || {
total_qty: 0,
total_weight: 0,
total_initial_amount: 0,
total_credit_note: 0,
total_final_amount: 0,
total_grand_amount: 0,
total_payment: 0,