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'>
<RequirePermission permissions='lti.production.transfer_to_laying.detail'>
<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'
color='none'
className='p-3 justify-start text-sm font-semibold w-full'
@@ -240,6 +240,10 @@ const TransferToLayingsTable = () => {
header: 'Tanggal Transfer',
cell: (props) => formatDate(props.getValue() as string, 'DD MMM YYYY'),
},
{
accessorKey: 'transfer_number',
header: 'No. Transfer',
},
{
accessorKey: 'flock_source',
header: 'Flock Asal',
@@ -266,6 +270,13 @@ const TransferToLayingsTable = () => {
accessorKey: 'notes',
header: 'Alasan Transfer',
enableSorting: false,
cell: (props) => {
return (
<span title={props.row.original.notes} className='line-clamp-1'>
{props.row.original.notes}
</span>
);
},
},
{
header: 'Status',