Skip to content

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.

fix: use baseCurrency for display in QuoteLinePricingHistory

Rob Carrington114f660d0ac1
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
index 3977affdfe..f5fb3d14aa 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
@@ -402,6 +402,7 @@ const QuoteLinePricing = ({
{relatedSalesOrderLines.length > 0 && (
<QuoteLinePricingHistory
relatedSalesOrderLines={relatedSalesOrderLines}
+ baseCurrency={baseCurrency}
/>
)}
<Table>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx
index b0520c91f4..6732cb1c45 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricingHistory.tsx
@@ -31,8 +31,10 @@ import { cn } from "../../../../../../../packages/react/src/utils/cn";
import type { SalesOrderLine } from "../../types";
const QuoteLinePricingHistory = ({
+ baseCurrency,
relatedSalesOrderLines,
}: {
+ baseCurrency: string;
relatedSalesOrderLines: SalesOrderLine[];
}) => {
const [isOpen, setIsOpen] = useState(false);
@@ -117,7 +119,7 @@ const QuoteLinePricingHistory = ({
<span className="text-sm font-medium">
{new Intl.NumberFormat("en-US", {
style: "currency",
- currency: "USD", // TODO: get currency from line
+ currency: baseCurrency,
}).format(line.unitPrice ?? 0)}
</span>
</div>