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: add y axis to kpi charts in sales and purchasing
Brad Barbin726f6ff753e7
diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsxindex 82f66c7a76..a2e6d27e37 100644--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx@@ -54,7 +54,7 @@ import {LuLayoutList,LuPackageSearch,} from "react-icons/lu";-import { Bar, BarChart, CartesianGrid, XAxis } from "recharts";+import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";import { Empty, Hyperlink, SupplierAvatar } from "~/components";import { useUser } from "~/hooks";import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";@@ -488,6 +488,21 @@ export default function PurchaseDashboard() {><BarChart accessibilityLayer data={kpiFetcher.data?.data ?? []}><CartesianGrid vertical={false} />+ <YAxis+ dataKey="value"+ tickLine={false}+ tickMargin={8}+ minTickGap={32}+ axisLine={false}+ tickFormatter={(value) => {+ return [+ "purchaseOrderAmount",+ "purchaseInvoiceAmount",+ ].includes(selectedKpiData.key)+ ? currencyFormatter.format(value as number)+ : numberFormatter.format(value as number);+ }}+ /><XAxisdataKey={["week", "month"].includes(interval) ? "date" : "month"diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsxindex 6fad310a29..99e0a6ee50 100644--- a/apps/erp/app/routes/x+/sales+/_index.tsx+++ b/apps/erp/app/routes/x+/sales+/_index.tsx@@ -51,7 +51,7 @@ import {RiProgress4Line,RiProgress8Line,} from "react-icons/ri";-import { Bar, BarChart, CartesianGrid, XAxis } from "recharts";+import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";import { CustomerAvatar, Empty, Hyperlink } from "~/components";import { useUser } from "~/hooks";import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";@@ -469,6 +469,18 @@ export default function SalesDashboard() {><BarChart accessibilityLayer data={kpiFetcher.data?.data ?? []}><CartesianGrid vertical={false} />+ <YAxis+ dataKey="value"+ tickLine={false}+ tickMargin={8}+ minTickGap={32}+ axisLine={false}+ tickFormatter={(value) => {+ return ["salesOrderRevenue"].includes(selectedKpiData.key)+ ? currencyFormatter.format(value as number)+ : numberFormatter.format(value as number);+ }}+ /><XAxisdataKey={["week", "month"].includes(interval) ? "date" : "month"