feat(FE): Add Periode and Gudang columns and show week

This commit is contained in:
rstubryan
2026-01-15 14:47:49 +07:00
parent dd080b1d19
commit a08ab7abaf
@@ -690,6 +690,10 @@ const RecordingTable = () => {
cell: (props) => cell: (props) =>
props.row.original.project_flock?.flock_name || '-', props.row.original.project_flock?.flock_name || '-',
}, },
{
header: 'Periode',
cell: (props) => props.row.original.project_flock?.period || '-',
},
{ {
header: 'Kategori', header: 'Kategori',
cell: (props) => { cell: (props) => {
@@ -706,7 +710,21 @@ const RecordingTable = () => {
}, },
{ {
header: 'Umur (hari)', header: 'Umur (hari)',
cell: (props) => props.row.original.day, cell: (props) => {
return (
<>
<span>
{props.row.original.day} (Minggu ke-
{props.row.original.project_flock.production_standart.week})
</span>
</>
);
},
},
{
accessorKey: 'warehouse.name',
header: 'Gudang',
cell: (props) => props.row.original.warehouse?.name,
}, },
{ {
accessorKey: 'record_date', accessorKey: 'record_date',
@@ -715,7 +733,7 @@ const RecordingTable = () => {
formatDate(props.row.original.record_datetime, 'DD MMMM YYYY'), formatDate(props.row.original.record_datetime, 'DD MMMM YYYY'),
}, },
{ {
header: 'Populasi Ayam', header: 'Populasi Akhir',
cell: (props) => cell: (props) =>
props.row.original.project_flock?.total_chick_qty?.toLocaleString() || props.row.original.project_flock?.total_chick_qty?.toLocaleString() ||
'-', '-',