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.

feat: save notes of contact

Brad Barbin5d5c7e1539f9
diff --git a/apps/erp/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx b/apps/erp/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx
index 0a93a88070..a54d7e4bab 100644
--- a/apps/erp/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx
+++ b/apps/erp/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx
@@ -129,6 +129,7 @@ export default function EditCustomerContactRoute() {
homePhone: contact?.contact?.homePhone ?? "",
workPhone: contact?.contact?.workPhone ?? "",
fax: contact?.contact?.fax ?? "",
+ notes: contact?.contact?.notes ?? "",
customerLocationId: contact?.customerLocationId ?? "",
...getCustomFields(contact?.customFields),
};
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx
index d5b80863b3..5b53aeef63 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx
@@ -130,6 +130,7 @@ export default function EditSupplierContactRoute() {
workPhone: contact?.contact?.workPhone ?? "",
fax: contact?.contact?.fax ?? "",
supplierLocationId: contact?.supplierLocationId ?? "",
+ notes: contact?.contact?.notes ?? "",
...getCustomFields(contact?.customFields),
};
diff --git a/apps/erp/app/types/validators.ts b/apps/erp/app/types/validators.ts
index fd8743498c..c00af9b193 100644
--- a/apps/erp/app/types/validators.ts
+++ b/apps/erp/app/types/validators.ts
@@ -34,6 +34,7 @@ export const contact = {
mobilePhone: zfd.text(z.string().optional()),
homePhone: zfd.text(z.string().optional()),
workPhone: zfd.text(z.string().optional()),
+ notes: zfd.text(z.string().optional()),
};
export const favoriteSchema = z.object({