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: add route for default revision

Brad Barbinecf4bd632bdb
diff --git a/apps/erp/app/routes/x+/items+/revisions.default.$id.$revisionId.tsx b/apps/erp/app/routes/x+/items+/revisions.default.$id.$revisionId.tsx
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.ts
index 1cacb71ed2..bd97a06ecb 100644
--- a/apps/erp/app/utils/path.ts
+++ b/apps/erp/app/utils/path.ts
@@ -378,6 +378,8 @@ export const path = {
deactivateGauge: (id: string) =>
generatePath(`${x}/quality/gauges/deactivate/${id}`),
deactivateUsers: `${x}/users/deactivate`,
+ defaultRevision: (id: string, revision: string) =>
+ generatePath(`${x}/items/revisions/default/${id}/${revision}`),
deleteAbility: (id: string) =>
generatePath(`${x}/resources/abilities/delete/${id}`),
deleteAccountingCategory: (id: string) =>