From 81d5c8f449e0225254e881c7948640d9531a0d59 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 21 May 2021 13:08:59 -0700 Subject: [PATCH] IO-1139 Total hours to 2 decimals. --- .../production-list-columns/production-list-columns.data.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/production-list-columns/production-list-columns.data.js b/client/src/components/production-list-columns/production-list-columns.data.js index df526004f..e4d820d76 100644 --- a/client/src/components/production-list-columns/production-list-columns.data.js +++ b/client/src/components/production-list-columns/production-list-columns.data.js @@ -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"),