fix(FE): fixing closing overhead

This commit is contained in:
randy-ar
2026-02-03 11:37:28 +07:00
parent f01765d2f8
commit eb6071aaf8
@@ -96,13 +96,10 @@ const ClosingOverheadTable = ({
{
id: 'budget_total_amount',
header: 'Total',
accessorFn: (props) =>
props.budget_total_amount
? formatCurrency(props.budget_total_amount)
: '-',
accessorFn: (props) => formatCurrency(props.budget_total_amount),
footer: total
? () => formatCurrency(total.budget_total_amount)
: '',
: '0',
},
],
},
@@ -121,7 +118,7 @@ const ClosingOverheadTable = ({
id: 'actual_quantity',
header: 'Jumlah',
accessorFn: (props) => formatNumber(props.actual_quantity),
footer: total ? () => formatNumber(total.actual_quantity) : '',
footer: total ? () => formatNumber(total.actual_quantity) : '0',
},
{
id: 'actual_unit_price',
@@ -135,7 +132,7 @@ const ClosingOverheadTable = ({
accessorFn: (props) => formatCurrency(props.actual_total_amount),
footer: total
? () => formatCurrency(total.actual_total_amount)
: '',
: '0',
},
],
},