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.

update: added lower and upper bound schema

Ayush Soni73871bb7e988
diff --git a/apps/erp/app/modules/approvals/approvals.models.ts b/apps/erp/app/modules/approvals/approvals.models.ts
index c411f3d223..f5fb184a18 100644
--- a/apps/erp/app/modules/approvals/approvals.models.ts
+++ b/apps/erp/app/modules/approvals/approvals.models.ts
@@ -41,7 +41,8 @@ export const approvalConfigurationValidator = z.object({
enabled: z.boolean().default(true),
approverGroupIds: zfd.repeatableOfType(z.string()).optional(),
defaultApproverId: zfd.text(z.string().optional()),
- thresholdAmount: zfd.numeric(z.number().min(0).optional()),
+ lowerBoundAmount: zfd.numeric(z.number().min(0).default(0)),
+ upperBoundAmount: zfd.numeric(z.number().min(0).nullable()).optional(),
escalationDaysLimit: zfd.numeric(z.number().min(0).optional())
});