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
chore(purchasing): trim narration comments from short-close change
naveenkash69a37f24c140
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsxindex c2309e11a5..a9821bb2a9 100644--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx@@ -446,8 +446,6 @@ function ReceiptLineItem({const splitDisclosure = useDisclosure();const deleteDisclosure = useDisclosure();- // Negative remaining means more was received than ordered — shown as a- // positive "Surplus" instead of a negative "Outstanding".const remainingQuantity =(line.outstandingQuantity ?? 0) - (line.receivedQuantity ?? 0);const isSurplus = remainingQuantity < 0;diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsxindex 636321a9f5..94f6a51f56 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx@@ -295,9 +295,6 @@ function PurchaseOrderLineItem({const isSelected =location.pathname === path.to.purchaseOrderLine(orderId, line.id!);- // Short close ("Stop Receiving"): settle a line whose remainder will never- // arrive. Only receivable line types, only on a released order, and only- // while the line still has an outstanding quantity.const isReceivableLineType =line.purchaseOrderLineType !== "Comment" &&line.purchaseOrderLineType !== "G/L Account";diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.receiving.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.receiving.tsxindex edc90fc525..1ad5e5703d 100644--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.receiving.tsx+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.receiving.tsx@@ -11,9 +11,8 @@ import {import { getDatabaseClient } from "~/services/database.server";import { path } from "~/utils/path";-// Short-close ("Stop Receiving") or reopen a purchase order line whose-// remaining quantity will never arrive. Intentionally does NOT use-// requireUnlocked — short close only makes sense on released (locked) orders.+// Intentionally does NOT use requireUnlocked — short close only makes sense+// on released (locked) orders.export async function action({ request, params }: ActionFunctionArgs) {assertIsPost(request);const { client, companyId, userId } = await requirePermissions(request, {diff --git a/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx b/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsxindex 50569a647a..a2ba657d11 100644--- a/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx+++ b/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx@@ -98,10 +98,8 @@ export async function action({ request, params }: ActionFunctionArgs) {Object.assign(allRuleNames, ruleNames);}- // Over-receipt check: warn (and require acknowledgment) when posting would- // push a PO line's received quantity past its ordered quantity. Uses the- // live PO lines rather than the receipt's outstanding-quantity snapshot so- // concurrent receipts are counted.+ // Check over-receipt against the live PO lines rather than the receipt's+ // outstanding-quantity snapshot so concurrent receipts are counted.if (receiptForSurface?.sourceDocument === "Purchase Order") {const purchaseOrderLineIds = [...new Set(