IO-1048 Add total hours to production list.

This commit is contained in:
Patrick Fic
2021-05-07 15:44:57 -07:00
parent 529c12e4ee
commit b2c1c8d184
5 changed files with 38 additions and 0 deletions

View File

@@ -214,6 +214,20 @@ const r = ({ technician, state }) => {
state.sortedInfo.columnKey === "larhrs" && state.sortedInfo.order,
render: (text, record) => record.larhrs.aggregate.sum.mod_lb_hrs,
},
{
title: i18n.t("production.labels.totalhours"),
dataIndex: "totalhours",
key: "totalhours",
sorter: (a, b) =>
a.labhrs.aggregate.sum.mod_lb_hrs +
a.larhrs.aggregate.sum.mod_lb_hrs -
(b.labhrs.aggregate.sum.mod_lb_hrs + b.larhrs.aggregate.sum.mod_lb_hrs),
sortOrder:
state.sortedInfo.columnKey === "totalhours" && state.sortedInfo.order,
render: (text, record) =>
record.labhrs.aggregate.sum.mod_lb_hrs +
record.larhrs.aggregate.sum.mod_lb_hrs,
},
{
title: i18n.t("production.labels.alert"),
dataIndex: "alert",