From 28c94e3e1df2c6e8050f5ca7cb27650a0bebf518 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Wed, 31 Dec 2025 11:21:35 +0700 Subject: [PATCH] refactor(FE): Show expedition vendor name in order detail --- src/components/pages/purchase/order/PurchaseOrderDetail.tsx | 2 +- src/types/api/purchase/purchase.d.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/pages/purchase/order/PurchaseOrderDetail.tsx b/src/components/pages/purchase/order/PurchaseOrderDetail.tsx index de07ee52..a5d6474b 100644 --- a/src/components/pages/purchase/order/PurchaseOrderDetail.tsx +++ b/src/components/pages/purchase/order/PurchaseOrderDetail.tsx @@ -583,7 +583,7 @@ const PurchaseOrderDetail = ({ { header: 'Ekspedisi', accessorKey: 'expedition_name', - cell: (props) => '-', + cell: (props) => props.row.original.expedition_vendor.name || '-', }, { header: 'Transport /Item', diff --git a/src/types/api/purchase/purchase.d.ts b/src/types/api/purchase/purchase.d.ts index 7b698b74..7f493d08 100644 --- a/src/types/api/purchase/purchase.d.ts +++ b/src/types/api/purchase/purchase.d.ts @@ -42,6 +42,12 @@ export type PurchaseItem = { expedition_vendor_name?: string | null; received_qty?: number | null; transport_per_item?: number | null; + expedition_vendor: { + id: number; + name: string; + alias: string; + category: string; + }; }; export type BasePurchase = {