mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: adjust detail link and add transfer_number column
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user