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(mes): set default quantity to 1 and make readonly for serial items
Fiber Botbb57e282eb7b
diff --git a/apps/mes/app/components/JobOperation/components/QuantityModal.tsx b/apps/mes/app/components/JobOperation/components/QuantityModal.tsxindex 7799de51ac..567bfeb04e 100644--- a/apps/mes/app/components/JobOperation/components/QuantityModal.tsx+++ b/apps/mes/app/components/JobOperation/components/QuantityModal.tsx@@ -61,7 +61,7 @@ export function QuantityModal({onClose: () => void;}) {const fetcher = useFetcher<ProductionQuantity>();- const [quantity, setQuantity] = useState(0);+ const [quantity, setQuantity] = useState(parentIsSerial ? 1 : 0);const titleMap = {scrap: `Log scrap for ${operation.itemReadableId}`,@@ -197,6 +197,7 @@ export function QuantityModal({label="Quantity"value={quantity}onChange={setQuantity}+ isReadOnly={parentIsSerial}minValue={0}/></>