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: buy and make bulk update for replenishment system

Brad Barbinfa037128c3a2
diff --git a/apps/erp/app/routes/x+/items+/update.tsx b/apps/erp/app/routes/x+/items+/update.tsx
index 23aa4c2e73..1dc09b1ebd 100644
--- a/apps/erp/app/routes/x+/items+/update.tsx
+++ b/apps/erp/app/routes/x+/items+/update.tsx
@@ -22,7 +22,7 @@ export async function action({ request }: ActionFunctionArgs) {
case "replenishmentSystem":
case "unitOfMeasureCode":
// For other fields, just update the specified field
- if (field === "replenishmentSystem") {
+ if (field === "replenishmentSystem" && value !== "Buy and Make") {
return json(
await client
.from("item")