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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
refactor: force redeploy
Brad Barbin9a0fd89369ce
diff --git a/apps/erp/app/modules/sales/sales.service.ts b/apps/erp/app/modules/sales/sales.service.tsindex 6bfce6d381..3b9c4f889f 100644--- a/apps/erp/app/modules/sales/sales.service.ts+++ b/apps/erp/app/modules/sales/sales.service.ts@@ -111,7 +111,7 @@ export async function copyQuoteLine(export async function copyQuote(client: SupabaseClient<Database>,- payload: z.infer<typeof getMethodValidator> & {+ payload: Omit<z.infer<typeof getMethodValidator>, "type"> & {companyId: string;userId: string;}diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.duplicate.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.duplicate.tsxindex 4bc399b997..3588384e4d 100644--- a/apps/erp/app/routes/x+/quote+/$quoteId.duplicate.tsx+++ b/apps/erp/app/routes/x+/quote+/$quoteId.duplicate.tsx@@ -1,6 +1,7 @@import { assertIsPost, getCarbonServiceRole } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";-import { ActionFunctionArgs, json } from "@vercel/remix";+import type { ActionFunctionArgs} from "@vercel/remix";+import { json } from "@vercel/remix";import { copyQuote } from "~/modules/sales/sales.service";export async function action({ request, params }: ActionFunctionArgs) {@@ -27,11 +28,12 @@ export async function action({ request, params }: ActionFunctionArgs) {const copy = await copyQuote(serviceRole, {sourceId: quoteId,targetId: asRevision ? quoteId : "",- type: "quoteToQuote",companyId: companyId,userId: userId,});+ console.log(copy);+return json({success: true,message: "Successfully duplicated quote",