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(inventory): kanban auto-release schedules on the service-role client

naveenkash9b673a0e66c5
diff --git a/apps/erp/app/modules/inventory/inventory.server.ts b/apps/erp/app/modules/inventory/inventory.server.ts
index fb545ecf39..a9464324e6 100644
--- a/apps/erp/app/modules/inventory/inventory.server.ts
+++ b/apps/erp/app/modules/inventory/inventory.server.ts
@@ -3495,7 +3495,7 @@ export const scanKanban = defineServiceFn({
try {
await runLocationSchedule({
db: ctx.asSystem.pg,
- client,
+ client: serviceRole,
locationId,
companyId,
userId