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
style: update color of percentage change
Brad Barbinf31b1ae75fee
diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsxindex 70b07a7669..4a6419e470 100644--- a/apps/erp/app/routes/x+/production+/_index.tsx+++ b/apps/erp/app/routes/x+/production+/_index.tsx@@ -1,5 +1,4 @@import {- Badge,Button,Card,CardAction,@@ -273,14 +272,16 @@ export default function ProductionDashboard() {) : (<><p>{formatDurationMilliseconds(total)}</p>- <Badge- variant="secondary"- className="normal-case font-medium px-2 rounded-full"- >- {percentageChange > 0- ? `+${percentageChange.toFixed(0)}%`- : `${percentageChange.toFixed(0)}%`}- </Badge>++ {percentageChange > 0 ? (+ <span className="text-emerald-500">+ +{percentageChange.toFixed(0)}%+ </span>+ ) : (+ <span className="text-red-500">+ {percentageChange.toFixed(0)}%+ </span>+ )}</>)}</HStack>diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsxindex a929c063b7..686b530f86 100644--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx@@ -1,6 +1,5 @@import { requirePermissions } from "@carbon/auth/auth.server";import {- Badge,Button,Card,CardAction,@@ -412,14 +411,15 @@ export default function PurchaseDashboard() {? currencyFormatter.format(total): numberFormatter.format(total)}</p>- <Badge- variant="secondary"- className="normal-case font-medium px-2 rounded-full"- >- {percentageChange > 0- ? `+${percentageChange.toFixed(0)}%`- : `${percentageChange.toFixed(0)}%`}- </Badge>+ {percentageChange > 0 ? (+ <span className="text-emerald-500">+ +{percentageChange.toFixed(0)}%+ </span>+ ) : (+ <span className="text-red-500">+ {percentageChange.toFixed(0)}%+ </span>+ )}</>)}</HStack>diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsxindex f9523bbc28..952ad08318 100644--- a/apps/erp/app/routes/x+/sales+/_index.tsx+++ b/apps/erp/app/routes/x+/sales+/_index.tsx@@ -1,6 +1,5 @@import { requirePermissions } from "@carbon/auth/auth.server";import {- Badge,Button,Card,CardAction,@@ -388,14 +387,15 @@ export default function SalesDashboard() {? currencyFormatter.format(total): numberFormatter.format(total)}</p>- <Badge- variant="secondary"- className="normal-case font-medium px-2 rounded-full"- >- {percentageChange > 0- ? `+${percentageChange.toFixed(0)}%`- : `${percentageChange.toFixed(0)}%`}- </Badge>+ {percentageChange >= 0 ? (+ <span className="text-emerald-500">+ +{percentageChange.toFixed(0)}%+ </span>+ ) : (+ <span className="text-red-500">+ {percentageChange.toFixed(0)}%+ </span>+ )}</>)}</HStack>