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: remove total time from date schedule
Brad Barbind0f98860b119
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/DateKanban.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/DateKanban.tsxindex 63ae7ae463..320ff9aea5 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/DateKanban.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/DateKanban.tsx@@ -1,7 +1,4 @@-import type {- DragOverEvent,- DragStartEvent,-} from "@dnd-kit/core";+import type { DragOverEvent, DragStartEvent } from "@dnd-kit/core";import {DndContext,DragOverlay,@@ -263,7 +260,7 @@ const DateKanban = ({column={col}items={items.filter((item) => item.columnId === col.id)}progressByItemId={progressByItemId}- hideInactiveIndicator={true}+ isDateView={true}disableColumnDrag={true}CardComponent={JobCard as any}/>diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ColumnCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ColumnCard.tsxindex 7f08e94fd0..701d9dcc4c 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ColumnCard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ColumnCard.tsx@@ -22,7 +22,7 @@ type ColumnCardProps = {items: Item[];isOverlay?: boolean;progressByItemId: Record<string, Progress>;- hideInactiveIndicator?: boolean;+ isDateView?: boolean;disableColumnDrag?: boolean;CardComponent?: ComponentType<{item: Item;@@ -36,7 +36,7 @@ export function ColumnCard({items,isOverlay,progressByItemId,- hideInactiveIndicator = false,+ isDateView = false,disableColumnDrag = false,CardComponent = ItemCard,}: ColumnCardProps) {@@ -47,7 +47,7 @@ export function ColumnCard({}, [items]);const totalDuration = items.reduce((acc, item) => {- return acc + Math.max((item.duration ?? 0) - (item.progress ?? 0), 0);+ return acc + Math.max((item?.duration ?? 0) - (item?.progress ?? 0), 0);}, 0);const {@@ -101,12 +101,12 @@ export function ColumnCard({><div className="p-4 w-full font-semibold text-left flex flex-row space-between items-center sticky top-0 bg-card z-1 border-b"><div className="flex flex-grow items-start space-x-2">- {column.active || !hideInactiveIndicator ? (+ {column.active || !isDateView ? (<PulsingDot inactive={!column.active} className="mt-2" />) : null}<div className="flex flex-col flex-grow"><span className="mr-auto truncate"> {column.title}</span>- {totalDuration > 0 ? (+ {!isDateView && totalDuration > 0 ? (<span className="text-muted-foreground text-xs">{formatDurationMilliseconds(totalDuration)}</span>