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: unit cost for made parts
Brad Barbin82d92e14f906
diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsxindex 342cc9d7d1..ffc12e949a 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsx@@ -264,11 +264,13 @@ function QuoteLineItem({ line, isDisabled, onDelete }: QuoteLineItemProps) {</DropdownMenu></HStack></HStack>- {disclosure.isOpen && permissions.can("update", "sales") && (- <VStack className="border-b border-border">- <QuoteBoMExplorer methods={methods} />- </VStack>- )}+ {disclosure.isOpen &&+ line.methodType === "Make" &&+ permissions.can("update", "sales") && (+ <VStack className="border-b border-border">+ <QuoteBoMExplorer methods={methods} />+ </VStack>+ )}</VStack>);}diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsxindex c4ac7c3015..64466ae8e4 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx@@ -371,13 +371,15 @@ const QuoteLinePricing = ({return isMade ? (<Td key={index} className="group-hover:bg-muted/50"><VStack spacing={0}>- <span>{formatter.format(optimisticUnitCost)}</span>+ <span>+ {formatter.format(unitCostsByQuantity[index])}+ </span></VStack></Td>) : (<Td key={index} className="group-hover:bg-muted/50"><NumberField- value={cost}+ value={optimisticUnitCost}formatOptions={{style: "currency",currency: "USD",