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: shipment status and outstanding quantity on receipt/shipment line
Brad Barbinc146d3f0b9e4
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsxindex c5c0ed3744..1e7cee1d75 100644--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx@@ -431,10 +431,8 @@ function ReceiptLineItem({</label><HStack className="justify-center"><span className="text-sm py-1.5">- {isReadOnly- ? (line.outstandingQuantity ?? 0) -- (line.receivedQuantity ?? 0)- : line.outstandingQuantity ?? 0}+ {(line.outstandingQuantity ?? 0) -+ (line.receivedQuantity ?? 0)}</span>{(line.receivedQuantity ?? 0) >diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsxindex eba82aef03..d56bcd1f1b 100644--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx@@ -474,10 +474,8 @@ function ShipmentLineItem({</label><HStack className="justify-center"><span className="text-sm py-1.5">- {isReadOnly- ? (line.outstandingQuantity || 0) -- (line.shippedQuantity || 0)- : line.outstandingQuantity || 0}+ {(line.outstandingQuantity || 0) -+ (line.shippedQuantity || 0)}</span>{(line.shippedQuantity || 0) >diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentStatus.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentStatus.tsxindex d11de7f8ce..052d8d31c2 100644--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentStatus.tsx+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentStatus.tsx@@ -4,10 +4,11 @@ import type { shipmentStatusType } from "~/modules/inventory";type ShipmentStatusProps = {status?: (typeof shipmentStatusType)[number] | null;invoiced?: boolean | null;+ voided?: boolean | null;};-const ShipmentStatus = ({ status, invoiced }: ShipmentStatusProps) => {- if (invoiced) {+const ShipmentStatus = ({ status, invoiced, voided }: ShipmentStatusProps) => {+ if (invoiced && status !== "Voided") {return <Status color="blue">Invoiced</Status>;}switch (status) {diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsxindex 7b1d79a410..5e5debc36d 100644--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsx@@ -138,7 +138,12 @@ const ShipmentsTable = memo(({ data, count }: ShipmentsTableProps) => {header: "Status",cell: (item) => {const status = item.getValue<(typeof shipmentStatusType)[number]>();- return <ShipmentStatus status={status} />;+ return (+ <ShipmentStatus+ status={status}+ invoiced={item.row.original.invoiced}+ />+ );},meta: {filter: {