Merge branch 'dev/hotfix/restu' into 'development'

[FIX/FE] Fix Aging/Umur on Closing Detail (Penjualan's Tab)

See merge request mbugroup/lti-web-client!232
This commit is contained in:
Rivaldi A N S
2026-01-22 06:13:38 +00:00
2 changed files with 11 additions and 6 deletions
@@ -112,12 +112,16 @@ const SalesReportTable = ({
<div className='font-semibold text-gray-900'>Total Penjualan</div> <div className='font-semibold text-gray-900'>Total Penjualan</div>
), ),
}, },
// { {
// id: 'age', id: 'age',
// accessorKey: 'age', accessorKey: 'age',
// header: 'Umur', header: 'Umur',
// cell: (props) => props.getValue() || '-', cell: (props) => {
// }, const age = props.row.original.age;
const week = props.row.original.week;
return age && week ? `${age} hari (${week} minggu)` : '-';
},
},
{ {
id: 'do_number', id: 'do_number',
accessorKey: 'do_number', accessorKey: 'do_number',
+1
View File
@@ -17,6 +17,7 @@ export type BaseSales = {
id: number; id: number;
realization_date: string; realization_date: string;
age: number; age: number;
week: number;
do_number: string; do_number: string;
product: Product; product: Product;
customer: Customer; customer: Customer;