From aaaa126c4296f308d0a3180c384b04bd83555fba Mon Sep 17 00:00:00 2001 From: rstubryan Date: Mon, 19 Jan 2026 09:32:59 +0700 Subject: [PATCH] refactor(FE): Display zero and negative aging days --- .../pages/report/finance/tab/CustomerPaymentTab.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx index 7a739dc7..b5e8e438 100644 --- a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx +++ b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx @@ -340,7 +340,9 @@ const CustomerPaymentTab = () => { const value = props.row.original.aging_day; return (
- {value && value > 0 ? `${formatNumber(value)} hari` : '-'} + {value !== null && value !== undefined + ? `${formatNumber(value)} hari` + : '-'}
); },