diff --git a/server/accounting/qb-receivables-lines.js b/server/accounting/qb-receivables-lines.js index 4be412ac9..631be177d 100644 --- a/server/accounting/qb-receivables-lines.js +++ b/server/accounting/qb-receivables-lines.js @@ -891,22 +891,19 @@ function checkStateTax(jobline, jobs_by_pk) { } const isAdditionalCost = - (jobline.lbr_op === "OP13" || (jobline.db_ref && jobline.db_ref.startsWith("9360"))) && !isPaintOrShopMat; + (jobline.lbr_op === "OP13" || + (jobline.lbr_op === "OP14" && jobline.act_price > 0 && jobline.mod_lb_hrs === 0) || + (jobline.db_ref && jobline.db_ref.startsWith("9360")) || + (jobline.db_ref && jobline.db_ref.startsWith("90051"))) && + !isPaintOrShopMat; - if (!jobline.part_type && isAdditionalCost) { - if (jobs_by_pk.tax_lbr_rt === 0) { - return false; - } else { - return true; + if (!jobline.part_type && isAdditionalCost) { + if (jobs_by_pk.tax_lbr_rt === 0) { + return false; + } else { + return true; + } } - } - - if ( - jobline.db_ref === "900511" || - jobline.db_ref === "900510" || - (jobline.mod_lb_hrs === 0 && jobline.act_price > 0 && jobline.lbr_op === "OP14") - ) - return true; //Extending IO-1375 as a part of IO-2023 if (jobline.tax_part === false) { return false;