IO-1139 Total hours to 2 decimals.

This commit is contained in:
Patrick Fic
2021-05-21 13:08:59 -07:00
parent 79fa71fc84
commit 81d5c8f449

View File

@@ -225,8 +225,10 @@ const r = ({ technician, state }) => {
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,
(
record.labhrs.aggregate.sum.mod_lb_hrs +
record.larhrs.aggregate.sum.mod_lb_hrs
).toFixed(2),
},
{
title: i18n.t("production.labels.alert"),