From 0f2173100866cf2e1cd5ee77764f7f49e5d66099 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Mon, 19 Jan 2026 16:00:27 +0700 Subject: [PATCH] feat(FE): Add Lokasi and Kandang columns in RecordingTable --- .../pages/production/recording/RecordingTable.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/pages/production/recording/RecordingTable.tsx b/src/components/pages/production/recording/RecordingTable.tsx index b854cd59..c30156ed 100644 --- a/src/components/pages/production/recording/RecordingTable.tsx +++ b/src/components/pages/production/recording/RecordingTable.tsx @@ -686,10 +686,18 @@ const RecordingTable = () => { 1, }, { - header: 'Nama Project', + header: 'Lokasi', + cell: (props) => props.row.original.location?.name || '-', + }, + { + header: 'Flock', cell: (props) => props.row.original.project_flock?.flock_name || '-', }, + { + header: 'Kandang', + cell: (props) => props.row.original.kandang?.name || '-', + }, { header: 'Periode', cell: (props) => props.row.original.project_flock?.period || '-', @@ -722,12 +730,10 @@ const RecordingTable = () => { }, }, { - accessorKey: 'warehouse.name', header: 'Gudang', cell: (props) => props.row.original.warehouse?.name, }, { - accessorKey: 'record_date', header: 'Waktu Recording', cell: (props) => formatDate(props.row.original.record_datetime, 'DD MMMM YYYY'),