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(sales): show digital quote Remove button wherever lines are selectable (#1283)
Siddharth Gaikwad4162a21be307
diff --git a/apps/erp/app/routes/share+/quote.$id.tsx b/apps/erp/app/routes/share+/quote.$id.tsxindex 319771a05d..e7357b11d7 100644--- a/apps/erp/app/routes/share+/quote.$id.tsx+++ b/apps/erp/app/routes/share+/quote.$id.tsx@@ -902,23 +902,26 @@ const LinePricingOptions = ({</div>)}- {selectedLine.quantity !== 0 && quote.status === "Sent" && (- <HStack spacing={2} className="w-full justify-end items-center">- <Button- variant="secondary"- leftIcon={<LuCircleX />}- onClick={() => {- setSelectedValue("0");- setSelectedLines((prev) => ({- ...prev,- [line.id!]: deselectedLine- }));- }}- >- <Trans>Remove</Trans>- </Button>- </HStack>- )}+ {selectedLine.quantity !== 0 &&+ !["Ordered", "Partial", "Expired", "Cancelled"].includes(+ quote.status+ ) && (+ <HStack spacing={2} className="w-full justify-end items-center">+ <Button+ variant="secondary"+ leftIcon={<LuCircleX />}+ onClick={() => {+ setSelectedValue("0");+ setSelectedLines((prev) => ({+ ...prev,+ [line.id!]: deselectedLine+ }));+ }}+ >+ <Trans>Remove</Trans>+ </Button>+ </HStack>+ )}</VStack>);};