From 28a32cb6c48f4c927057e406f3414d4a4978b1dd Mon Sep 17 00:00:00 2001 From: rstubryan Date: Tue, 20 Jan 2026 10:21:22 +0700 Subject: [PATCH] refactor(FE): Move travel document button into receipt section --- .../purchase/order/PurchaseOrderDetail.tsx | 53 ++++++++----------- 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/src/components/pages/purchase/order/PurchaseOrderDetail.tsx b/src/components/pages/purchase/order/PurchaseOrderDetail.tsx index 61044c97..21307af9 100644 --- a/src/components/pages/purchase/order/PurchaseOrderDetail.tsx +++ b/src/components/pages/purchase/order/PurchaseOrderDetail.tsx @@ -540,31 +540,6 @@ const PurchaseOrderDetail = ({ accessorKey: '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 ? ( - - ) : ( - '-' - ); - }, - }, { header: 'No. Armada Pengangkut', accessorKey: 'vehicle_number', @@ -905,11 +880,29 @@ const PurchaseOrderDetail = ({ Informasi Penerimaan Barang {canShowPenerimaanBarang && ( - - - +
+ {goodsReceiptItems[0]?.travel_document_path && ( + + )} + + + +
)}