mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
refactor(FE): Move travel document button into receipt section
This commit is contained in:
@@ -540,31 +540,6 @@ const PurchaseOrderDetail = ({
|
|||||||
accessorKey: 'travel_number',
|
accessorKey: 'travel_number',
|
||||||
cell: (props) => props.row.original.travel_number || '-',
|
cell: (props) => props.row.original.travel_number || '-',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
header: 'Dokumen Surat Jalan',
|
|
||||||
accessorKey: 'travel_document_path',
|
|
||||||
cell: (props) => {
|
|
||||||
const documentPath = props.row.original.travel_document_path;
|
|
||||||
return documentPath ? (
|
|
||||||
<Button
|
|
||||||
color='primary'
|
|
||||||
className='w-fit min-w-32 flex items-center justify-start gap-1 px-2 py-1 text-sm'
|
|
||||||
href={documentPath}
|
|
||||||
target='_blank'
|
|
||||||
rel='noopener noreferrer'
|
|
||||||
>
|
|
||||||
<Icon
|
|
||||||
icon='material-symbols:file-open-outline'
|
|
||||||
width={16}
|
|
||||||
height={16}
|
|
||||||
/>
|
|
||||||
Lihat Dokumen
|
|
||||||
</Button>
|
|
||||||
) : (
|
|
||||||
'-'
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
header: 'No. Armada Pengangkut',
|
header: 'No. Armada Pengangkut',
|
||||||
accessorKey: 'vehicle_number',
|
accessorKey: 'vehicle_number',
|
||||||
@@ -905,11 +880,29 @@ const PurchaseOrderDetail = ({
|
|||||||
Informasi Penerimaan Barang
|
Informasi Penerimaan Barang
|
||||||
</h3>
|
</h3>
|
||||||
{canShowPenerimaanBarang && (
|
{canShowPenerimaanBarang && (
|
||||||
<RowDropdownOptions isLast2Rows>
|
<div className='flex items-center gap-2'>
|
||||||
<PenerimaanBarangDropdown
|
{goodsReceiptItems[0]?.travel_document_path && (
|
||||||
onEdit={penerimaanBarangModal.openModal}
|
<Button
|
||||||
/>
|
color='primary'
|
||||||
</RowDropdownOptions>
|
className='w-fit min-w-32 flex items-center justify-start gap-1 p-1.5 text-sm'
|
||||||
|
href={goodsReceiptItems[0].travel_document_path}
|
||||||
|
target='_blank'
|
||||||
|
rel='noopener noreferrer'
|
||||||
|
>
|
||||||
|
<Icon
|
||||||
|
icon='material-symbols:file-open-outline'
|
||||||
|
width={16}
|
||||||
|
height={16}
|
||||||
|
/>
|
||||||
|
Lihat Dokumen
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
<RowDropdownOptions isLast2Rows>
|
||||||
|
<PenerimaanBarangDropdown
|
||||||
|
onEdit={penerimaanBarangModal.openModal}
|
||||||
|
/>
|
||||||
|
</RowDropdownOptions>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className='overflow-x-auto'>
|
<div className='overflow-x-auto'>
|
||||||
|
|||||||
Reference in New Issue
Block a user