From 65550c7bf493cf26b682688f4c4a9cbd52651ee9 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 5 Oct 2021 11:36:21 -0700 Subject: [PATCH] IO-1436 App tax part fix to all regions. --- .../job-checklist-form.component.jsx | 6 +++++- .../jobs-available-table.container.jsx | 21 +++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx index 6d76cdd8b..cdffbec23 100644 --- a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx +++ b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx @@ -167,7 +167,11 @@ export function JobChecklistForm({ title={t("checklist.labels.checklist")} extra={ !readOnly && ( - ) diff --git a/client/src/components/jobs-available-table/jobs-available-table.container.jsx b/client/src/components/jobs-available-table/jobs-available-table.container.jsx index 0cbd3cf1e..0aebfdaf0 100644 --- a/client/src/components/jobs-available-table/jobs-available-table.container.jsx +++ b/client/src/components/jobs-available-table/jobs-available-table.container.jsx @@ -490,15 +490,14 @@ async function CheckTaxRates(estData, bodyshop) { //IO-1387 If a sublet line is NOT R&R, use the labor tax. If it is, use the sublet tax rate. //Currently limited to SK shops only. - if (bodyshop.region_config === "CA_SK") { - estData.joblines.data.forEach((jl, index) => { - if ( - (jl.part_type === "PASL" || jl.part_type === "PAS") && - jl.lbr_op !== "OP11" - ) { - estData.joblines.data[index].tax_part = jl.lbr_tax; - console.log(estData.joblines.data[index], jl); - } - }); - } + //if (bodyshop.region_config === "CA_SK") { + estData.joblines.data.forEach((jl, index) => { + if ( + (jl.part_type === "PASL" || jl.part_type === "PAS") && + jl.lbr_op !== "OP11" + ) { + estData.joblines.data[index].tax_part = jl.lbr_tax; + } + }); + //} }