Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(CustomerLocationForm): too many inputs woops

edsammy16a453fa9764
diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerLocationForm.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerLocationForm.tsx
index 0fc35b6192..e0131e2006 100644
--- a/apps/erp/app/modules/sales/ui/Customer/CustomerLocationForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerLocationForm.tsx
@@ -19,10 +19,8 @@ import {
CustomFormFields,
Hidden,
Input,
- InputControlled,
Submit,
} from "~/components/Form";
-import Country from "~/components/Form/Country";
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
import { customerLocationValidator } from "../../sales.models";
@@ -87,18 +85,7 @@ const CustomerLocationForm = ({
<Hidden name="addressId" />
<VStack spacing={4}>
<Input name="name" label="Name" />
- <AddressAutocomplete
- name="addressLine1"
- label="Address Line 1"
- />
- <InputControlled name="addressLine2" label="Address Line 2" />
- <InputControlled name="city" label="City" />
- <InputControlled
- name="stateProvince"
- label="State / Province"
- />
- <InputControlled name="postalCode" label="Postal Code" />
- <Country name="countryCode" />
+ <AddressAutocomplete />
<CustomFormFields table="customerLocation" />
</VStack>
</ModalDrawerBody>