From 89339e103376b977b793dddc88a4ffe56b73532e Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 23 Nov 2023 09:37:49 -0800 Subject: [PATCH] IO-2478 resolve incorrect labor type during conversion calculation. --- server/payroll/pay-all.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/payroll/pay-all.js b/server/payroll/pay-all.js index 935c7d566..8a622f1a2 100644 --- a/server/payroll/pay-all.js +++ b/server/payroll/pay-all.js @@ -250,8 +250,7 @@ function CalculateExpectedHoursForJob(job, filterToLbrTypes) { .forEach((jobline) => { if (jobline.convertedtolbr) { // Line has been converte to labor. Temporarily re-assign the hours. - jobline.mod_lbr_ty = - jobline.mod_lbr_ty || jobline.convertedtolbr_data.mod_lbr_ty; + jobline.mod_lbr_ty = jobline.convertedtolbr_data.mod_lbr_ty; jobline.mod_lb_hrs += jobline.convertedtolbr_data.mod_lb_hrs; } if (jobline.mod_lb_hrs != 0) {