diff --git a/src/components/pages/inventory/movement/form/MovementForm.tsx b/src/components/pages/inventory/movement/form/MovementForm.tsx index 29f44503..1d4e791b 100644 --- a/src/components/pages/inventory/movement/form/MovementForm.tsx +++ b/src/components/pages/inventory/movement/form/MovementForm.tsx @@ -26,6 +26,7 @@ import { DeliverySchema, } from '@/components/pages/inventory/movement/form/MovementForm.schema'; import { SupplierApi, WarehouseApi } from '@/services/api/master-data'; +import { Supplier } from '@/types/api/master-data/supplier'; import { ProductWarehouseApi } from '@/services/api/inventory'; import { toast } from 'react-hot-toast'; import { MovementApi } from '@/services/api/inventory'; @@ -100,11 +101,14 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { isLoadingOptions: isLoadingWarehouses, } = useSelect(WarehouseApi.basePath, 'id', 'name', 'search'); + // ===== SELECT INPUT DATA ===== const { setInputValue: setSupplierSelectInputValue, options: supplierOptions, isLoadingOptions: isLoadingSuppliers, - } = useSelect(SupplierApi.basePath, 'id', 'name', 'search'); + } = useSelect(SupplierApi.basePath, 'id', 'name', 'search', { + category: 'BOP', + }); const warehousesUrl = `${WarehouseApi.basePath}?${new URLSearchParams({ search: warehouseSelectInputValue }).toString()}`; const { data: warehouses } = useSWR(