diff --git a/client/src/components/production-list-table/production-list-table.component.jsx b/client/src/components/production-list-table/production-list-table.component.jsx index 38b894f96..d69741496 100644 --- a/client/src/components/production-list-table/production-list-table.component.jsx +++ b/client/src/components/production-list-table/production-list-table.component.jsx @@ -1,4 +1,12 @@ -import { Dropdown, Input, Menu, PageHeader, Space, Table } from "antd"; +import { + Dropdown, + Input, + Menu, + PageHeader, + Space, + Statistic, + Table, +} from "antd"; import React, { useMemo, useState } from "react"; import ReactDragListView from "react-drag-listview"; import { useTranslation } from "react-i18next"; @@ -157,10 +165,26 @@ export function ProductionListTable({ // }; if (!!!columns) return
No columns found.
; + console.log(data); + const totalHrs = data + .reduce( + (acc, val) => + acc + + (val.labhrs?.aggregate?.sum?.mod_lb_hrs || 0) + + (val.larhrs?.aggregate?.sum?.mod_lb_hrs || 0), + 0 + ) + .toFixed(1); return (
+ } extra={