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.

Merge remote-tracking branch 'origin' into fix/quote-pricing-base-currency-symbol

sidgaikwadf518577cc6a3
diff --cc apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
index 53c47bb089,9fe412a0f1..8aae9df955
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
@@@ -175,14 -178,14 +178,17 @@@ const QuoteLinePricing = (
const { carbon } = useCarbon();
const { id: userId, company } = useUser();
const baseCurrency = company?.baseCurrencyCode ?? "USD";
+ const currencyDecimals = useCurrencyDecimals(baseCurrency);
const formatter = useCurrencyFormatter();
+ const percentFormatter = usePercentFormatter();
+ // 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({
+ rate: true,
- currency: routeData?.quote?.currencyCode ?? baseCurrency,
+ currency: baseCurrency,
- maximumFractionDigits: unitPricePrecision
+ decimalPlaces: unitPricePrecision
});
const presentationCurrencyFormatter = useCurrencyFormatter({
currency: routeData?.quote?.currencyCode ?? baseCurrency,
diff --cc apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx
index 7dc0dede70,ea2d87f5fa..df6ce7677b
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx
@@@ -41,13 -40,20 +40,21 @@@ import
LuTriangleAlert
} from "react-icons/lu";
import { Link, useParams } from "react-router";
- import { CustomerAvatar, DateTime, Hyperlink, MethodIcon } from "~/components";
+ import {
+ CustomerAvatar,
+ DateTime,
+ Hyperlink,
+ MethodIcon,
+ MotionMoney
+ } from "~/components";
import { Confirm } from "~/components/Modals";
import {
+ useCurrencyDecimals,
+ useCurrencyFormatter,
usePercentFormatter,
usePermissions,
- useRouteData
+ useRouteData,
+ useUser
} from "~/hooks";
import JobStatus from "~/modules/production/ui/Jobs/JobStatus";
import { getPrivateUrl, path } from "~/utils/path";
@@@ -85,20 -91,15 +92,17 @@@ const SalesOrderSummary = (
const salesOrderToJobsModal = useDisclosure();
const { locale } = useLocale();
- const formatter = useCurrencyFormatter({
- currency: routeData?.salesOrder?.currencyCode ?? "USD"
- });
+ const { company } = useUser();
+ const baseCurrency = company?.baseCurrencyCode ?? "USD";
+ // Base currency: this formats `line.unitPrice`, a base-currency column. The
+ // order-currency figure is `convertedUnitPrice`, rendered above the badge.
- const formatter = useMemo(
- () =>
- new Intl.NumberFormat(locale, {
- style: "currency",
- currency: baseCurrency
- }),
- [locale, baseCurrency]
- );
++ const formatter = useCurrencyFormatter({ currency: baseCurrency });
const isEditable = !isSalesOrderLocked(routeData?.salesOrder?.status);
+ // Settlement money at the document currency's configured decimals.
+ const currencyDecimals = useCurrencyDecimals(
+ routeData?.salesOrder?.currencyCode ?? "USD"
+ );
// Calculate totals
const subtotal =
diff --cc apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
index b9df085b8a,ee4a393c9e..62bd00129a
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
@@@ -1,6 -1,6 +1,6 @@@
{
- "generated": "2026-08-12T17:55:02.705Z",
- "totalTools": 1434,
- "generated": "2026-08-13T15:12:30.047Z",
++ "generated": "2026-08-14T11:46:08.058Z",
+ "totalTools": 1436,
"modules": 15,
"tools": [
{