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
Merge branch 'main' into feat/add-rfq-to-purchasing-module
Gaurav Bhattf251c59dcf99
diff --cc .gitignoreindex 286ef636b9,d8bd884bcb..cdb11f59f0--- a/.gitignore+++ b/.gitignore@@@ -34,4 -36,4 +36,4 @@@ packages/database/supabase/seed.sq.vercel.env*.local--.react-router++.react-routerdiff --cc apps/erp/app/routes/x+/supplier-quote+/$id.tsxindex 250149582e,657e51bc89..06e1ec5044--- a/apps/erp/app/routes/x+/supplier-quote+/$id.tsx+++ b/apps/erp/app/routes/x+/supplier-quote+/$id.tsx@@@ -7,7 -7,7 +7,8 @@@ import { Outlet, redirect, useParams }import { PanelProvider, ResizablePanels } from "~/components/Layout/Panels";import { getCurrencyByCode } from "~/modules/accounting";import {+ getSiblingQuotesForQuote,+ getSupplier,getSupplierInteraction,getSupplierInteractionDocuments,getSupplierQuote,@@@ -74,16 -77,11 +79,21 @@@ export async function loader({ requestexchangeRate = presentationCurrency.data.exchangeRate;}+ // Extract sibling quotes from the linked data+ const siblingQuotesData =+ siblingQuotes.data+ ?.map((link) => link.supplierQuote)+ .filter(Boolean)+ // Deduplicate by quote ID (a quote might be linked to multiple shared RFQs)+ .filter(+ (quote, index, self) =>+ self.findIndex((q) => q?.id === quote?.id) === index+ ) ?? [];+ // Compute default CC: use supplier's if set, otherwise company's+ const defaultCc =+ supplier.data?.defaultCc?.length > 0+ ? supplier.data.defaultCc+ : (companySettings.data?.defaultSupplierCc ?? []);return {quote: quote.data,@@@ -96,7 -94,7 +106,8 @@@),interaction: supplierInteraction.data,exchangeRate,- siblingQuotes: siblingQuotesData++ siblingQuotes: siblingQuotesData,+ defaultCc};}