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', id: 'budget_total_amount',
header: 'Total', header: 'Total',
accessorFn: (props) => accessorFn: (props) => formatCurrency(props.budget_total_amount),
props.budget_total_amount
? formatCurrency(props.budget_total_amount)
: '-',
footer: total footer: total
? () => formatCurrency(total.budget_total_amount) ? () => formatCurrency(total.budget_total_amount)
: '', : '0',
}, },
], ],
}, },
@@ -121,7 +118,7 @@ const ClosingOverheadTable = ({
id: 'actual_quantity', id: 'actual_quantity',
header: 'Jumlah', header: 'Jumlah',
accessorFn: (props) => formatNumber(props.actual_quantity), accessorFn: (props) => formatNumber(props.actual_quantity),
footer: total ? () => formatNumber(total.actual_quantity) : '', footer: total ? () => formatNumber(total.actual_quantity) : '0',
}, },
{ {
id: 'actual_unit_price', id: 'actual_unit_price',
@@ -135,7 +132,7 @@ const ClosingOverheadTable = ({
accessorFn: (props) => formatCurrency(props.actual_total_amount), accessorFn: (props) => formatCurrency(props.actual_total_amount),
footer: total footer: total
? () => formatCurrency(total.actual_total_amount) ? () => formatCurrency(total.actual_total_amount)
: '', : '0',
}, },
], ],
}, },