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
fix: cleanup from PR comments
Rob Carrington1c017b5b0abe
diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.accounting.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.accounting.tsxindex 59de2d4659..604f589442 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.accounting.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.accounting.tsx@@ -11,7 +11,6 @@ import {import CustomerAccountingForm from "~/modules/sales/ui/Customer/CustomerAccountingForm";import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";-import { getCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error, success } from "~/utils/result";@@ -32,12 +31,10 @@ export async function action({ request }: ActionFunctionArgs) {const { id, ...data } = validation.data;- console.log({ data });-if (!id) {throw redirect(path.to.customerAccounting(id),- await flash(request, error(null, "Failed to update customer"))+ await flash(request, error(null, "Failed to update customer accounting")));}@@ -50,11 +47,17 @@ export async function action({ request }: ActionFunctionArgs) {if (update.error) {throw redirect(path.to.customerAccounting(id),- await flash(request, error(update.error, "Failed to update customer"))+ await flash(+ request,+ error(update.error, "Failed to update customer accounting")+ ));}- return json(null, await flash(request, success("Updated customer")));+ return json(+ null,+ await flash(request, success("Updated customer accounting"))+ );}export default function CustomerAccountingRoute() {@@ -70,7 +73,6 @@ export default function CustomerAccountingRoute() {id: routeData?.customer?.id ?? undefined,customerTypeId: routeData?.customer?.customerTypeId ?? undefined,taxId: routeData?.customer?.taxId ?? "",- ...getCustomFields(routeData?.customer?.customFields),};return (diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.accounting.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.accounting.tsxindex 29fdaae5bd..f3a6c8d339 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.accounting.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.accounting.tsx@@ -11,7 +11,6 @@ import {import SupplierAccountingForm from "~/modules/purchasing/ui/Supplier/SupplierAccountingForm";import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";-import { getCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error, success } from "~/utils/result";@@ -32,12 +31,10 @@ export async function action({ request }: ActionFunctionArgs) {const { id, ...data } = validation.data;- console.log({ data });-if (!id) {throw redirect(path.to.supplierAccounting(id),- await flash(request, error(null, "Failed to update supplier"))+ await flash(request, error(null, "Failed to update supplier accounting")));}@@ -50,11 +47,17 @@ export async function action({ request }: ActionFunctionArgs) {if (update.error) {throw redirect(path.to.supplierAccounting(id),- await flash(request, error(update.error, "Failed to update supplier"))+ await flash(+ request,+ error(update.error, "Failed to update supplier accounting")+ ));}- return json(null, await flash(request, success("Updated supplier")));+ return json(+ null,+ await flash(request, success("Updated supplier accounting"))+ );}export default function SupplierAccountingRoute() {@@ -70,7 +73,6 @@ export default function SupplierAccountingRoute() {id: routeData?.supplier?.id ?? undefined,supplierTypeId: routeData?.supplier?.supplierTypeId ?? undefined,taxId: routeData?.supplier?.taxId ?? "",- ...getCustomFields(routeData?.supplier?.customFields),};return (