diff --git a/src/components/pages/purchase/PurchaseTable.tsx b/src/components/pages/purchase/PurchaseTable.tsx index ada8a62e..3cbb894f 100644 --- a/src/components/pages/purchase/PurchaseTable.tsx +++ b/src/components/pages/purchase/PurchaseTable.tsx @@ -305,6 +305,14 @@ const PurchaseTable = () => { ? formatDate(props.row.original.po_date, 'DD MMM YYYY') : '-', }, + { + accessorKey: 'received_date', + header: 'Tgl. Terima', + cell: (props) => + props.row.original.received_date + ? formatDate(props.row.original.received_date, 'DD MMM YYYY') + : '-', + }, { accessorKey: 'due_date', header: 'Jatuh Tempo', diff --git a/src/types/api/purchase/purchase.d.ts b/src/types/api/purchase/purchase.d.ts index 0fe5562e..615c2e5c 100644 --- a/src/types/api/purchase/purchase.d.ts +++ b/src/types/api/purchase/purchase.d.ts @@ -68,6 +68,7 @@ export type BasePurchase = { supplier: Supplier; credit_term?: number; due_date: string; + received_date?: string | null; notes?: string | null; deleted_at?: string | null; created_by: number;