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(sales): show base-currency quote pricing rows in the base currency

sidgaikwadd6c8fd531ca0
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
index 8a8bc56441..53c47bb089 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
@@ -177,8 +177,11 @@ const QuoteLinePricing = ({
const baseCurrency = company?.baseCurrencyCode ?? "USD";
const formatter = useCurrencyFormatter();
+ // Base currency: every value this formats (unit costs, category costs, net
+ // unit prices) reads a base-currency column. The quote-currency figures live
+ // in the converted rows below, behind the `currencyCode !== baseCurrency` gate.
const unitPriceFormatter = useCurrencyFormatter({
- currency: routeData?.quote?.currencyCode ?? baseCurrency,
+ currency: baseCurrency,
maximumFractionDigits: unitPricePrecision
});
const presentationCurrencyFormatter = useCurrencyFormatter({