From 9fec6bbe0c90b0c9f5c5e729d993e70754da0489 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 29 Jul 2022 10:37:48 -0700 Subject: [PATCH] IO-2004 Include adjustments made to new labor types. --- .../labor-allocations-table.utility.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/labor-allocations-table/labor-allocations-table.utility.js b/client/src/components/labor-allocations-table/labor-allocations-table.utility.js index 78d5aa2c6..02afcb107 100644 --- a/client/src/components/labor-allocations-table/labor-allocations-table.utility.js +++ b/client/src/components/labor-allocations-table/labor-allocations-table.utility.js @@ -6,12 +6,17 @@ export const CalculateAllocationsTotals = ( timetickets, adjustments = [] ) => { + console.log( + "🚀 ~ file: labor-allocations-table.utility.js ~ line 9 ~ adjustments", + adjustments + ); const responsibilitycenters = bodyshop.md_responsibility_centers; const jobCodes = joblines.map((item) => item.mod_lbr_ty); //.filter((value, index, self) => self.indexOf(value) === index && !!value); const ticketCodes = timetickets.map((item) => item.ciecacode); //.filter((value, index, self) => self.indexOf(value) === index && !!value); - const allCodes = [...jobCodes, ...ticketCodes].filter( + const adjustmentCodes = Object.keys(adjustments); + const allCodes = [...jobCodes, ...ticketCodes, ...adjustmentCodes].filter( (value, index, self) => self.indexOf(value) === index && !!value );