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>
),
},
// {
// id: 'age',
// accessorKey: 'age',
// header: 'Umur',
// cell: (props) => props.getValue() || '-',
// },
{
id: 'age',
accessorKey: 'age',
header: 'Umur',
cell: (props) => {
const age = props.row.original.age;
const week = props.row.original.week;
return age && week ? `${age} hari (${week} minggu)` : '-';
},
},
{
id: 'do_number',
accessorKey: 'do_number',
+1
View File
@@ -17,6 +17,7 @@ export type BaseSales = {
id: number;
realization_date: string;
age: number;
week: number;
do_number: string;
product: Product;
customer: Customer;