import React from "react"; import { AppFormController, useAppFormContext } from "../../hooks/appHooks/useAppForm"; import Label from "../common/Label"; import DatePicker from "../common/DatePicker"; import { SelectFieldSearch, SelectProjectField, } from "../common/Forms/SelectFieldServerSide"; import { useGlobaleOrganizations, useOrganization, useOrganizationsList } from "../../hooks/useOrganization"; import { ITEMS_PER_PAGE } from "../../utils/constants"; const PurchasePartyDetails = () => { const { register, control, setValue, watch, formState: { errors }, } = useAppFormContext(); return (
{/* Title */}
{errors?.title && (
{errors.title.message}
)}
{/* Project ID */}
setValue("projectId", val, { shouldDirty: true, shouldValidate: true, }) } errors={errors} />
{/* Organization */}
{/* */} ( )} />
{/* Supplier */}
( )} /> {errors?.supplierId && (
{errors.supplierId.message}
)}
{/* Billing Address */}