diff --git a/src/components/pages/purchase/PurchaseTable.tsx b/src/components/pages/purchase/PurchaseTable.tsx index 86338de9..ea466fc2 100644 --- a/src/components/pages/purchase/PurchaseTable.tsx +++ b/src/components/pages/purchase/PurchaseTable.tsx @@ -22,8 +22,6 @@ import TextInput from '@/components/input/TextInput'; import RowOptionsMenuWrapper from '@/components/table/RowOptionsMenuWrapper'; import { cn, formatDate, formatCurrency } from '@/lib/helper'; -import PurchaseOrderStaffApprovalForm from '@/components/pages/purchase/form/order/PurchaseOrderStaffApprovalForm'; -import PurchaseOrderAcceptApprovalForm from '@/components/pages/purchase/form/order/PurchaseOrderAcceptApprovalForm'; import { isResponseSuccess } from '@/lib/api-helper'; import { useTableFilter } from '@/services/hooks/useTableFilter'; import { ROWS_OPTIONS } from '@/config/constant'; @@ -111,8 +109,6 @@ const PurchaseTable = () => { // Modal hooks const deleteModal = useModal(); - const staffApprovalModal = useModal(); - const acceptApprovalModal = useModal(); // Supplier modal const { @@ -287,30 +283,7 @@ const PurchaseTable = () => { Tambah - - - - + {selectedRowIds.length > 0 && ( + + + + {/* Steps */} {approvalSteps.length > 0 ? (
@@ -509,7 +546,7 @@ const PurchaseOrderDetail = ({
- Gudang Penyimpanan + Gudang {purchaseData.warehouse?.name || '-'} @@ -652,7 +689,7 @@ const PurchaseOrderDetail = ({ wrapper: 'w-full mt-8', }} > -
+
data={goodsReceiptItems} @@ -675,6 +712,34 @@ const PurchaseOrderDetail = ({
+ + {/* Staff Approval Modal */} + + + + + {/* Accept Approval Modal */} + + + ); };