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.

chore: approvals routes added to path

Ayush Sonicd3b60e7a43e
diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.ts
index d86ee7f553..78ad7c6973 100644
--- a/apps/erp/app/utils/path.ts
+++ b/apps/erp/app/utils/path.ts
@@ -362,6 +362,10 @@ export const path = {
},
authenticatedRoot: x,
acknowledge: `${x}/acknowledge`,
+ approvals: `${x}/approvals`,
+ approval: (id: string) => generatePath(`${x}/approvals/${id}`),
+ approvalDecision: `${x}/approvals/decision`,
+ approvalSettings: `${x}/settings/approvals`,
abilities: `${x}/resources/abilities`,
ability: (id: string) => generatePath(`${x}/resources/ability/${id}`),
account: `${x}/account`,
@@ -1263,6 +1267,8 @@ export const path = {
purchaseOrderRoot: `${x}/purchase-order`,
purchaseOrderStatus: (id: string) =>
generatePath(`${x}/purchase-order/${id}/status`),
+ purchaseOrderSubmitForApproval: (id: string) =>
+ generatePath(`${x}/purchase-order/${id}/submit-for-approval`),
purchaseOrders: `${x}/purchasing/orders`,
purchasing: `${x}/purchasing`,
purchasingPlanning: `${x}/purchasing/planning`,
@@ -1276,6 +1282,8 @@ export const path = {
generatePath(`${x}/quality-document/${id}/steps/${attributeId}`),
qualityDocumentStepOrder: (id: string) =>
generatePath(`${x}/quality-document/${id}/steps/order`),
+ qualityDocumentSubmitForApproval: (id: string) =>
+ generatePath(`${x}/quality-document/${id}/submit-for-approval`),
qualitySettings: `${x}/settings/quality`,
quote: (id: string) => generatePath(`${x}/quote/${id}`),
quoteAssembly: (quoteId: string, lineId: string, assemblyId: string) =>