chore: adjust detail link and add transfer_number column

This commit is contained in:
ValdiANS
2026-01-27 16:58:37 +07:00
parent df4b513739
commit f94c8ba799
@@ -74,7 +74,7 @@ const RowOptionsMenu = ({
<div className='flex flex-col bg-base-100 rounded-xl'> <div className='flex flex-col bg-base-100 rounded-xl'>
<RequirePermission permissions='lti.production.transfer_to_laying.detail'> <RequirePermission permissions='lti.production.transfer_to_laying.detail'>
<Button <Button
href={`/production/transfer-to-laying/detail/?transferToLayingId=${props.row.original.id}`} href={`/production/transfer-to-laying/?action=detail&id=${props.row.original.id}`}
variant='ghost' variant='ghost'
color='none' color='none'
className='p-3 justify-start text-sm font-semibold w-full' className='p-3 justify-start text-sm font-semibold w-full'
@@ -240,6 +240,10 @@ const TransferToLayingsTable = () => {
header: 'Tanggal Transfer', header: 'Tanggal Transfer',
cell: (props) => formatDate(props.getValue() as string, 'DD MMM YYYY'), cell: (props) => formatDate(props.getValue() as string, 'DD MMM YYYY'),
}, },
{
accessorKey: 'transfer_number',
header: 'No. Transfer',
},
{ {
accessorKey: 'flock_source', accessorKey: 'flock_source',
header: 'Flock Asal', header: 'Flock Asal',
@@ -266,6 +270,13 @@ const TransferToLayingsTable = () => {
accessorKey: 'notes', accessorKey: 'notes',
header: 'Alasan Transfer', header: 'Alasan Transfer',
enableSorting: false, enableSorting: false,
cell: (props) => {
return (
<span title={props.row.original.notes} className='line-clamp-1'>
{props.row.original.notes}
</span>
);
},
}, },
{ {
header: 'Status', header: 'Status',