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(erp): long line descriptions pushed order/invoice totals off the card
sidgaikwad3f0ab1a738c5
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsxindex 36a467fd2d..02a306b74c 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx@@ -125,15 +125,14 @@ const LineItems = ({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>+ {/* The text column must shrink (flex-1 min-w-0) or a long+ description shoves the totals out of the card, and its+ children need w-full because VStack is items-start, which+ sizes each child to its own content and leaves truncate+ inert no matter how narrow the column gets. */}<div className="flex items-center justify-between w-full">- <VStack- spacing={0}- className="flex-shrink-0 min-w-0 w-auto"- >- <HStack- spacing={2}- className="flex min-w-0 flex-shrink-0"- >+ <VStack spacing={0} className="flex-1 min-w-0">+ <HStack spacing={2} className="flex min-w-0 w-full"><Heading className="truncate">{itemReadableId}</Heading><ButtonasChild@@ -152,7 +151,7 @@ const LineItems = ({</Button></HStack><TruncatedTooltipText- className="text-muted-foreground text-sm truncate"+ className="text-muted-foreground text-sm truncate w-full"tooltip={lineDescription}>{lineDescription}diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsxindex d91680ff78..fe78353776 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx@@ -127,15 +127,14 @@ const LineItems = ({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>+ {/* The text column must shrink (flex-1 min-w-0) or a long+ description shoves the totals out of the card, and its+ children need w-full because VStack is items-start, which+ sizes each child to its own content and leaves truncate+ inert no matter how narrow the column gets. */}<div className="flex items-center justify-between w-full">- <VStack- spacing={0}- className="flex-shrink-0 min-w-0 w-auto"- >- <HStack- spacing={2}- className="flex min-w-0 flex-shrink-0"- >+ <VStack spacing={0} className="flex-1 min-w-0">+ <HStack spacing={2} className="flex min-w-0 w-full"><Heading className="truncate">{itemReadableId}</Heading><ButtonasChild@@ -151,7 +150,7 @@ const LineItems = ({</Button></HStack><TruncatedTooltipText- className="text-muted-foreground text-sm truncate"+ className="text-muted-foreground text-sm truncate w-full"tooltip={line.description}>{line.description}diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsxindex a80c855077..2fe106fcfe 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx@@ -129,15 +129,14 @@ const LineItems = ({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>+ {/* The text column must shrink (flex-1 min-w-0) or a long+ description shoves the totals out of the card, and its+ children need w-full because VStack is items-start, which+ sizes each child to its own content and leaves truncate+ inert no matter how narrow the column gets. */}<div className="flex items-center justify-between w-full">- <VStack- spacing={0}- className="flex-shrink-0 min-w-0 w-auto"- >- <HStack- spacing={2}- className="flex min-w-0 flex-shrink-0"- >+ <VStack spacing={0} className="flex-1 min-w-0">+ <HStack spacing={2} className="flex min-w-0 w-full"><Heading className="truncate">{itemReadableId}</Heading><ButtonasChild@@ -153,7 +152,7 @@ const LineItems = ({</Button></HStack><TruncatedTooltipText- className="text-muted-foreground text-sm truncate"+ className="text-muted-foreground text-sm truncate w-full"tooltip={lineDescription}>{lineDescription}diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsxindex a3a2532b8c..d847939fab 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx@@ -406,15 +406,14 @@ function LineItems({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>+ {/* The text column must shrink (flex-1 min-w-0) or a long+ description shoves the totals out of the card, and its+ children need w-full because VStack is items-start, which+ sizes each child to its own content and leaves truncate+ inert no matter how narrow the column gets. */}<div className="flex items-center justify-between w-full">- <VStack- spacing={0}- className="flex-shrink-0 min-w-0 w-auto"- >- <HStack- spacing={2}- className="flex min-w-0 flex-shrink-0"- >+ <VStack spacing={0} className="flex-1 min-w-0">+ <HStack spacing={2} className="flex min-w-0 w-full"><Heading className="truncate">{line.salesOrderLineType === "Fixed Asset"? (line as any).assetReadableId || "Fixed Asset"@@ -432,7 +431,7 @@ function LineItems({</Button></HStack><TruncatedTooltipText- className="text-muted-foreground text-sm truncate"+ className="text-muted-foreground text-sm truncate w-full"tooltip={line.description}>{line.description}