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.

style: fix tax percent on digital quote

Brad Barbin044f1df275a8
diff --git a/apps/carbon/app/routes/share+/quote.$id.tsx b/apps/carbon/app/routes/share+/quote.$id.tsx
index 79c7fd28df..9d814f2c7b 100644
--- a/apps/carbon/app/routes/share+/quote.$id.tsx
+++ b/apps/carbon/app/routes/share+/quote.$id.tsx
@@ -51,6 +51,7 @@ import {
LuUpload,
LuXCircle,
} from "react-icons/lu";
+import { usePercentFormatter } from "~/hooks";
import { useMode } from "~/hooks/useMode";
import { getPaymentTermsList } from "~/modules/accounting";
import { getShippingMethodsList } from "~/modules/inventory";
@@ -593,6 +594,7 @@ const LinePricingOptions = ({
setSelectedLines,
strings,
}: LinePricingOptionsProps) => {
+ const percentFormatter = usePercentFormatter();
const { quote, salesOrderLines } = useLoaderData<typeof loader>().data!;
const hasSalesOrder =
@@ -810,7 +812,8 @@ const LinePricingOptions = ({
<Tr key="tax" className="border-b border-border">
<Td>
- {strings.Tax} ({selectedLine.taxPercent * 100}%)
+ {strings.Tax} (
+ {percentFormatter.format(selectedLine.taxPercent)})
</Td>
<Td className="text-right">
<MotionNumber