mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
feat(FE): Add Lokasi and Kandang columns in RecordingTable
This commit is contained in:
@@ -686,10 +686,18 @@ const RecordingTable = () => {
|
|||||||
1,
|
1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Nama Project',
|
header: 'Lokasi',
|
||||||
|
cell: (props) => props.row.original.location?.name || '-',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: 'Flock',
|
||||||
cell: (props) =>
|
cell: (props) =>
|
||||||
props.row.original.project_flock?.flock_name || '-',
|
props.row.original.project_flock?.flock_name || '-',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
header: 'Kandang',
|
||||||
|
cell: (props) => props.row.original.kandang?.name || '-',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
header: 'Periode',
|
header: 'Periode',
|
||||||
cell: (props) => props.row.original.project_flock?.period || '-',
|
cell: (props) => props.row.original.project_flock?.period || '-',
|
||||||
@@ -722,12 +730,10 @@ const RecordingTable = () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'warehouse.name',
|
|
||||||
header: 'Gudang',
|
header: 'Gudang',
|
||||||
cell: (props) => props.row.original.warehouse?.name,
|
cell: (props) => props.row.original.warehouse?.name,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'record_date',
|
|
||||||
header: 'Waktu Recording',
|
header: 'Waktu Recording',
|
||||||
cell: (props) =>
|
cell: (props) =>
|
||||||
formatDate(props.row.original.record_datetime, 'DD MMMM YYYY'),
|
formatDate(props.row.original.record_datetime, 'DD MMMM YYYY'),
|
||||||
|
|||||||
Reference in New Issue
Block a user