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
feat: replace hardcoded USD with the company baseCurrency across the app
Rob Carringtonb01342497c77
diff --git a/apps/carbon/app/hooks/useCurrencyFormatter.tsx b/apps/carbon/app/hooks/useCurrencyFormatter.tsxindex d8e599cb77..429d56b68e 100644--- a/apps/carbon/app/hooks/useCurrencyFormatter.tsx+++ b/apps/carbon/app/hooks/useCurrencyFormatter.tsx@@ -1,11 +1,18 @@import { useLocale } from "@react-aria/i18n";import { useMemo } from "react";+import { useUser } from "./useUser";export function useCurrencyFormatter() {+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";const { locale } = useLocale();const formatter = useMemo(- () => new Intl.NumberFormat(locale, { style: "currency", currency: "USD" }),- [locale]+ () =>+ new Intl.NumberFormat(locale, {+ style: "currency",+ currency: baseCurrency,+ }),+ [locale, baseCurrency]);return formatter;}diff --git a/apps/carbon/app/modules/items/ui/Consumables/ConsumableForm.tsx b/apps/carbon/app/modules/items/ui/Consumables/ConsumableForm.tsxindex 997cbe570f..55d9dadecc 100644--- a/apps/carbon/app/modules/items/ui/Consumables/ConsumableForm.tsx+++ b/apps/carbon/app/modules/items/ui/Consumables/ConsumableForm.tsx@@ -28,7 +28,7 @@ import {TextArea,UnitOfMeasure,} from "~/components/Form";-import { useNextItemId, usePermissions } from "~/hooks";+import { useNextItemId, usePermissions, useUser } from "~/hooks";import { consumableValidator, itemTrackingTypes } from "~/modules/items";import { path } from "~/utils/path";@@ -47,6 +47,9 @@ const ConsumableForm = ({type = "card",onClose,}: ConsumableFormProps) => {+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const fetcher = useFetcher<PostgrestResponse<{ id: string }>>();useEffect(() => {@@ -155,7 +158,7 @@ const ConsumableForm = ({label="Unit Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>diff --git a/apps/carbon/app/modules/items/ui/Fixtures/FixtureForm.tsx b/apps/carbon/app/modules/items/ui/Fixtures/FixtureForm.tsxindex a3adb20059..a305198d36 100644--- a/apps/carbon/app/modules/items/ui/Fixtures/FixtureForm.tsx+++ b/apps/carbon/app/modules/items/ui/Fixtures/FixtureForm.tsx@@ -28,7 +28,7 @@ import {Submit,TextArea,} from "~/components/Form";-import { useNextItemId, usePermissions } from "~/hooks";+import { useNextItemId, usePermissions, useUser } from "~/hooks";import {fixtureValidator,itemReplenishmentSystems,@@ -51,6 +51,9 @@ const FixtureForm = ({type = "card",onClose,}: FixtureFormProps) => {+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const fetcher = useFetcher<PostgrestResponse<{ id: string }>>();useEffect(() => {@@ -178,7 +181,7 @@ const FixtureForm = ({label="Unit Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>diff --git a/apps/carbon/app/modules/items/ui/Item/ItemCostingForm.tsx b/apps/carbon/app/modules/items/ui/Item/ItemCostingForm.tsxindex ee08cf6e6e..b164f7dd86 100644--- a/apps/carbon/app/modules/items/ui/Item/ItemCostingForm.tsx+++ b/apps/carbon/app/modules/items/ui/Item/ItemCostingForm.tsx@@ -17,17 +17,18 @@ import {Select,Submit,} from "~/components/Form";-import { usePermissions } from "~/hooks";+import { usePermissions, useUser } from "~/hooks";import { itemCostValidator, itemCostingMethods } from "~/modules/items";type ItemCostingFormProps = {initialValues: z.infer<typeof itemCostValidator>;};-const currency = "USD"; // TODO: get from settings-const ItemCostingForm = ({ initialValues }: ItemCostingFormProps) => {const permissions = usePermissions();+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const [partCostingMethod, setItemCostingMethod] = useState<string>(initialValues.costingMethod);@@ -66,7 +67,7 @@ const ItemCostingForm = ({ initialValues }: ItemCostingFormProps) => {label="Standard Cost"formatOptions={{style: "currency",- currency,+ currency: baseCurrency,}}isReadOnly={partCostingMethod !== "Standard"}/>@@ -76,7 +77,7 @@ const ItemCostingForm = ({ initialValues }: ItemCostingFormProps) => {label="Unit Cost"formatOptions={{style: "currency",- currency,+ currency: baseCurrency,}}/>@@ -85,7 +86,7 @@ const ItemCostingForm = ({ initialValues }: ItemCostingFormProps) => {label="Sales History"formatOptions={{style: "currency",- currency,+ currency: baseCurrency,}}isReadOnly/>diff --git a/apps/carbon/app/modules/items/ui/Materials/MaterialForm.tsx b/apps/carbon/app/modules/items/ui/Materials/MaterialForm.tsxindex 222e155b95..c04dcfb67a 100644--- a/apps/carbon/app/modules/items/ui/Materials/MaterialForm.tsx+++ b/apps/carbon/app/modules/items/ui/Materials/MaterialForm.tsx@@ -30,7 +30,7 @@ import {TextArea,UnitOfMeasure,} from "~/components/Form";-import { useNextItemId, usePermissions, useRouteData } from "~/hooks";+import { useNextItemId, usePermissions, useRouteData, useUser } from "~/hooks";import type {getMaterialFormsList,getMaterialSubstancesList,@@ -54,6 +54,9 @@ const MaterialForm = ({type = "card",onClose,}: MaterialFormProps) => {+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode;+const fetcher = useFetcher<PostgrestResponse<{ id: string }>>();const forms = useMaterialForms();const substances = useMaterialSubstances();@@ -175,7 +178,7 @@ const MaterialForm = ({label="Unit Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>diff --git a/apps/carbon/app/modules/items/ui/Parts/PartForm.tsx b/apps/carbon/app/modules/items/ui/Parts/PartForm.tsxindex ff9986db60..74201a86c1 100644--- a/apps/carbon/app/modules/items/ui/Parts/PartForm.tsx+++ b/apps/carbon/app/modules/items/ui/Parts/PartForm.tsx@@ -28,7 +28,7 @@ import {TextArea,UnitOfMeasure,} from "~/components/Form";-import { useNextItemId, usePermissions } from "~/hooks";+import { useNextItemId, usePermissions, useUser } from "~/hooks";import {itemReplenishmentSystems,itemTrackingTypes,@@ -47,6 +47,9 @@ function startsWithLetter(value: string) {}const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const fetcher = useFetcher<PostgrestResponse<{ id: string }>>();useEffect(() => {@@ -176,7 +179,7 @@ const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {label="Unit Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>diff --git a/apps/carbon/app/modules/items/ui/Tools/ToolForm.tsx b/apps/carbon/app/modules/items/ui/Tools/ToolForm.tsxindex 725e4c3bac..2a18eadc94 100644--- a/apps/carbon/app/modules/items/ui/Tools/ToolForm.tsx+++ b/apps/carbon/app/modules/items/ui/Tools/ToolForm.tsx@@ -28,7 +28,7 @@ import {TextArea,UnitOfMeasure,} from "~/components/Form";-import { useNextItemId, usePermissions } from "~/hooks";+import { useNextItemId, usePermissions, useUser } from "~/hooks";import { itemTrackingTypes, toolValidator } from "~/modules/items";import { path } from "~/utils/path";@@ -43,6 +43,9 @@ function startsWithLetter(value: string) {}const ToolForm = ({ initialValues, type = "card", onClose }: ToolFormProps) => {+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const fetcher = useFetcher<PostgrestResponse<{ id: string }>>();useEffect(() => {@@ -152,7 +155,7 @@ const ToolForm = ({ initialValues, type = "card", onClose }: ToolFormProps) => {label="Unit Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobBillOfMaterial.tsxindex acda10152b..0d91268de1 100644--- a/apps/carbon/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx+++ b/apps/carbon/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx@@ -415,6 +415,8 @@ function MaterialForm({const params = useParams();const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {// replace the temporary id with the actual idif (methodMaterialFetcher.data && methodMaterialFetcher.data.id) {@@ -590,6 +592,10 @@ function MaterialForm({label="Unit Cost"value={itemData.unitCost}minValue={0}+ formatOptions={{+ style: "currency",+ currency: baseCurrency,+ }}/>)}</div>diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsxindex 562fee6b7d..2c4b7e190d 100644--- a/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsx+++ b/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsx@@ -641,12 +641,14 @@ function OperationForm({setSelectedItemId: Dispatch<SetStateAction<string | null>>;}) {const { jobId } = useParams();- const { id: userId } = useUser();+ const { id: userId, company } = useUser();if (!jobId) throw new Error("jobId not found");const fetcher = useFetcher<{ id: string }>();const { carbon } = useCarbon();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {// replace the temporary id with the actual idif (fetcher.data && fetcher.data.id) {@@ -958,7 +960,7 @@ function OperationForm({value={processData.operationMinimumCost}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -974,7 +976,7 @@ function OperationForm({value={processData.operationUnitCost}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -1251,7 +1253,7 @@ function OperationForm({value={processData.laborRate}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -1267,7 +1269,7 @@ function OperationForm({value={processData.machineRate}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -1283,7 +1285,7 @@ function OperationForm({value={processData.overheadRate}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsxindex 497aee8b44..5f7507c8a3 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx@@ -24,7 +24,7 @@ import {Submit,Supplier,} from "~/components/Form";-import { usePermissions } from "~/hooks";+import { usePermissions, useUser } from "~/hooks";import type { SupplierProcess } from "~/modules/purchasing";import { supplierProcessValidator } from "~/modules/purchasing";import { path } from "~/utils/path";@@ -48,6 +48,9 @@ const SupplierProcessForm = ({const [supplier, setSupplier] = useState<string | undefined>(supplierId);const navigate = useNavigate();+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {if (type !== "modal") return;@@ -115,7 +118,7 @@ const SupplierProcessForm = ({label="Minimum Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>@@ -124,7 +127,7 @@ const SupplierProcessForm = ({label="Unit Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}/>diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsxindex 6a7e73198c..d862c96d15 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx@@ -33,7 +33,7 @@ type SupplierProccessesProps = {const SupplierProccesses = ({ processes }: SupplierProccessesProps) => {const { supplierId } = useParams();if (!supplierId) throw new Error("supplierId not found");- const { id: userId } = useUser();+ const { id: userId, company } = useUser();const navigate = useNavigate();const permissions = usePermissions();@@ -42,6 +42,8 @@ const SupplierProccesses = ({ processes }: SupplierProccessesProps) => {const canDelete = permissions.can("delete", "purchasing");const { carbon } = useCarbon();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const onCellEdit = useCallback(async (id: string, value: unknown, row: SupplierProcess) => {if (!carbon) throw new Error("Carbon client not found");@@ -135,14 +137,14 @@ const SupplierProccesses = ({ processes }: SupplierProccessesProps) => {const editableComponents = useMemo(() => ({minimumCost: EditableNumber(onCellEdit, {- formatOptions: { style: "currency", currency: "USD" },+ formatOptions: { style: "currency", currency: baseCurrency },}),unitCost: EditableNumber(onCellEdit, {- formatOptions: { style: "currency", currency: "USD" },+ formatOptions: { style: "currency", currency: baseCurrency },}),leadTime: EditableNumber(onCellEdit),}),- [onCellEdit]+ [onCellEdit, baseCurrency]);return (diff --git a/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx b/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsxindex d70f831e85..6da5e455c2 100644--- a/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx+++ b/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx@@ -28,7 +28,7 @@ import {Submit,TextArea,} from "~/components/Form";-import { usePermissions } from "~/hooks";+import { usePermissions, useUser } from "~/hooks";import { workCenterValidator } from "~/modules/resources";import { path } from "~/utils/path";@@ -50,6 +50,9 @@ const WorkCenterForm = ({const permissions = usePermissions();const fetcher = useFetcher<PostgrestResponse<{ id: string }>>();+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {if (type !== "modal") return;@@ -110,7 +113,7 @@ const WorkCenterForm = ({label="Labor Rate (Hourly)"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}/><Number@@ -118,7 +121,7 @@ const WorkCenterForm = ({label="Machine Rate (Hourly)"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}/><Number@@ -126,7 +129,7 @@ const WorkCenterForm = ({label="Overhead Rate (Hourly)"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}/>diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsxindex 4ef8f15a7c..13c7d7da50 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx@@ -415,6 +415,8 @@ function MaterialForm({const params = useParams();const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {// replace the temporary id with the actual idif (methodMaterialFetcher.data && methodMaterialFetcher.data.id) {@@ -591,6 +593,10 @@ function MaterialForm({label="Unit Cost"value={itemData.unitCost}minValue={0}+ formatOptions={{+ style: "currency",+ currency: baseCurrency,+ }}/>)}</div>diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsxindex 37e9798351..c1d73f9f41 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx@@ -518,13 +518,15 @@ function OperationForm({setSelectedItemId: Dispatch<SetStateAction<string | null>>;}) {const { quoteId, lineId } = useParams();- const { id: userId } = useUser();+ const { id: userId, company } = useUser();if (!quoteId) throw new Error("quoteId not found");if (!lineId) throw new Error("lineId not found");const fetcher = useFetcher<{ id: string }>();const { carbon } = useCarbon();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {// replace the temporary id with the actual idif (fetcher.data && fetcher.data.id) {@@ -835,7 +837,7 @@ function OperationForm({value={processData.operationMinimumCost}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -851,7 +853,7 @@ function OperationForm({value={processData.operationUnitCost}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -1128,7 +1130,7 @@ function OperationForm({value={processData.laborRate}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -1144,7 +1146,7 @@ function OperationForm({value={processData.machineRate}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({@@ -1160,7 +1162,7 @@ function OperationForm({value={processData.overheadRate}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(newValue) =>setProcessData((d) => ({diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsxindex f10c2c8d62..355f6f9d68 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx@@ -102,7 +102,8 @@ const QuoteLinePricing = ({return line.unitCost ?? 0;}, [line.itemId, line.unitCost, fetcher.formAction, fetcher.formData]);- const { id: userId } = useUser();+ const { id: userId, company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";const formatter = useCurrencyFormatter();@@ -382,7 +383,7 @@ const QuoteLinePricing = ({value={optimisticUnitCost}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}onChange={(value) => {@@ -464,7 +465,7 @@ const QuoteLinePricing = ({value={price}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}minValue={0}onChange={(value) => {@@ -664,7 +665,7 @@ const QuoteLinePricing = ({defaultValue={amount}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(value) => {if (diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteToOrderModal.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteToOrderModal.tsxindex 07cba80ece..2a7b3913f4 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteToOrderModal.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteToOrderModal.tsx@@ -46,7 +46,7 @@ import { CustomerAvatar } from "~/components";import { Enumerable } from "~/components/Enumerable";import { usePaymentTerm } from "~/components/Form/PaymentTerm";import { useShippingMethod } from "~/components/Form/ShippingMethod";-import { useRouteData } from "~/hooks";+import { useRouteData, useUser } from "~/hooks";import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";import { getDocumentType } from "~/modules/documents";import { path } from "~/utils/path";@@ -440,6 +440,9 @@ const LinePricingOptions = ({unitPrice: 0,});+ const { company } = useUser();+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+useEffect(() => {if (selectedValue === "custom") {setSelectedLines((prev) => ({@@ -575,7 +578,7 @@ const LinePricingOptions = ({value={overridePricing.unitPrice}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(unitPrice) =>setOverridePricing((v) => ({@@ -596,7 +599,7 @@ const LinePricingOptions = ({value={overridePricing.addOn}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(addOn) =>setOverridePricing((v) => ({diff --git a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsxindex 090138324d..2c953eb522 100644--- a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx+++ b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx@@ -79,6 +79,8 @@ const SalesOrderLineForm = ({routeData?.salesOrder?.status ?? "");+ const baseCurrency = company?.baseCurrencyCode ?? "USD";+const [lineType, setLineType] = useState(initialValues.salesOrderLineType);const [locationId, setLocationId] = useState(initialValues.locationId ?? "");const [itemData, setItemData] = useState<{@@ -315,7 +317,7 @@ const SalesOrderLineForm = ({value={itemData.unitPrice}formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}onChange={(value) =>setItemData((d) => ({@@ -329,7 +331,7 @@ const SalesOrderLineForm = ({label="Add-On Cost"formatOptions={{style: "currency",- currency: "USD",+ currency: baseCurrency,}}/>