Resolve CI issues.

This commit is contained in:
Patrick Fic
2023-02-14 16:21:17 -08:00
parent d052cde6ca
commit 729e0fc5ca
2 changed files with 93 additions and 93 deletions

View File

@@ -402,98 +402,98 @@ function replaceEmpty(someObj, replaceValue = null) {
} }
async function CheckTaxRates(estData, bodyshop) { async function CheckTaxRates(estData, bodyshop) {
// //LKQ Check //LKQ Check
// if ( if (
// !estData.parts_tax_rates?.PAL || !estData.parts_tax_rates?.PAL ||
// estData.parts_tax_rates?.PAL?.prt_tax_rt === null || estData.parts_tax_rates?.PAL?.prt_tax_rt === null ||
// estData.parts_tax_rates?.PAL?.prt_tax_rt === 0 estData.parts_tax_rates?.PAL?.prt_tax_rt === 0
// ) { ) {
// const res = await confirmDialog( const res = await confirmDialog(
// `Rome Online has detected that there is a missing tax rate for LKQ parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.` `Rome Online has detected that there is a missing tax rate for LKQ parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.`
// ); );
// if (res) { if (res) {
// if (!estData.parts_tax_rates.PAL) { if (!estData.parts_tax_rates.PAL) {
// estData.parts_tax_rates.PAL = { estData.parts_tax_rates.PAL = {
// prt_discp: 0, prt_discp: 0,
// prt_mktyp: true, prt_mktyp: true,
// prt_mkupp: 0, prt_mkupp: 0,
// prt_type: "PAL", prt_type: "PAL",
// }; };
// } }
// estData.parts_tax_rates.PAL.prt_tax_rt = estData.parts_tax_rates.PAL.prt_tax_rt =
// bodyshop.bill_tax_rates.state_tax_rate / 100; bodyshop.bill_tax_rates.state_tax_rate / 100;
// estData.parts_tax_rates.PAL.prt_tax_in = true; estData.parts_tax_rates.PAL.prt_tax_in = true;
// } }
// } }
// //PAC Check //PAC Check
// if ( if (
// !estData.parts_tax_rates?.PAC || !estData.parts_tax_rates?.PAC ||
// estData.parts_tax_rates?.PAC?.prt_tax_rt === null || estData.parts_tax_rates?.PAC?.prt_tax_rt === null ||
// estData.parts_tax_rates?.PAC?.prt_tax_rt === 0 estData.parts_tax_rates?.PAC?.prt_tax_rt === 0
// ) { ) {
// const res = await confirmDialog( const res = await confirmDialog(
// `Rome Online has detected that there is a missing tax rate for rechromed parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.` `Rome Online has detected that there is a missing tax rate for rechromed parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.`
// ); );
// if (res) { if (res) {
// if (!estData.parts_tax_rates.PAC) { if (!estData.parts_tax_rates.PAC) {
// estData.parts_tax_rates.PAC = { estData.parts_tax_rates.PAC = {
// prt_discp: 0, prt_discp: 0,
// prt_mktyp: true, prt_mktyp: true,
// prt_mkupp: 0, prt_mkupp: 0,
// prt_type: "PAC", prt_type: "PAC",
// }; };
// } }
// estData.parts_tax_rates.PAC.prt_tax_rt = estData.parts_tax_rates.PAC.prt_tax_rt =
// bodyshop.bill_tax_rates.state_tax_rate / 100; bodyshop.bill_tax_rates.state_tax_rate / 100;
// estData.parts_tax_rates.PAC.prt_tax_in = true; estData.parts_tax_rates.PAC.prt_tax_in = true;
// } }
// } }
// //PAM Check //PAM Check
// if ( if (
// !estData.parts_tax_rates?.PAM || !estData.parts_tax_rates?.PAM ||
// estData.parts_tax_rates?.PAM?.prt_tax_rt === null || estData.parts_tax_rates?.PAM?.prt_tax_rt === null ||
// estData.parts_tax_rates?.PAM?.prt_tax_rt === 0 estData.parts_tax_rates?.PAM?.prt_tax_rt === 0
// ) { ) {
// const res = await confirmDialog( const res = await confirmDialog(
// `Rome Online has detected that there is a missing tax rate for remanufactured parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.` `Rome Online has detected that there is a missing tax rate for remanufactured parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.`
// ); );
// if (res) { if (res) {
// if (!estData.parts_tax_rates.PAM) { if (!estData.parts_tax_rates.PAM) {
// estData.parts_tax_rates.PAM = { estData.parts_tax_rates.PAM = {
// prt_discp: 0, prt_discp: 0,
// prt_mktyp: true, prt_mktyp: true,
// prt_mkupp: 0, prt_mkupp: 0,
// prt_type: "PAM", prt_type: "PAM",
// }; };
// } }
// estData.parts_tax_rates.PAM.prt_tax_rt = estData.parts_tax_rates.PAM.prt_tax_rt =
// bodyshop.bill_tax_rates.state_tax_rate / 100; bodyshop.bill_tax_rates.state_tax_rate / 100;
// estData.parts_tax_rates.PAM.prt_tax_in = true; estData.parts_tax_rates.PAM.prt_tax_in = true;
// } }
// } }
// if ( if (
// !estData.parts_tax_rates?.PAR || !estData.parts_tax_rates?.PAR ||
// estData.parts_tax_rates?.PAR?.prt_tax_rt === null || estData.parts_tax_rates?.PAR?.prt_tax_rt === null ||
// estData.parts_tax_rates?.PAR?.prt_tax_rt === 0 estData.parts_tax_rates?.PAR?.prt_tax_rt === 0
// ) { ) {
// const res = await confirmDialog( const res = await confirmDialog(
// `Rome Online has detected that there is a missing tax rate for recored parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.` `Rome Online has detected that there is a missing tax rate for recored parts. Pressing OK will set the tax rate to ${bodyshop.bill_tax_rates.state_tax_rate}% and enable the rate. Pressing cancel will keep the tax rate as is.`
// ); );
// if (res) { if (res) {
// if (!estData.parts_tax_rates.PAR) { if (!estData.parts_tax_rates.PAR) {
// estData.parts_tax_rates.PAR = { estData.parts_tax_rates.PAR = {
// prt_discp: 0, prt_discp: 0,
// prt_mktyp: true, prt_mktyp: true,
// prt_mkupp: 0, prt_mkupp: 0,
// prt_type: "PAR", prt_type: "PAR",
// }; };
// } }
// estData.parts_tax_rates.PAR.prt_tax_rt = estData.parts_tax_rates.PAR.prt_tax_rt =
// bodyshop.bill_tax_rates.state_tax_rate / 100; bodyshop.bill_tax_rates.state_tax_rate / 100;
// estData.parts_tax_rates.PAR.prt_tax_in = true; estData.parts_tax_rates.PAR.prt_tax_in = true;
// } }
// } }
//IO-1387 If a sublet line is NOT R&R, use the labor tax. If it is, use the sublet tax rate. //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. //Currently limited to SK shops only.

View File

@@ -1,9 +1,9 @@
import React from "react"; import React from "react";
import i18n from "../translations/i18n";
import ImexOnlineLogoLight from "../assets/ImEX Online Logo.png"; import ImexOnlineLogoLight from "../assets/ImEX Online Logo.png";
import i18n from "../translations/i18n";
import RomeLogo from "../assets/romelogo.png";
import TechnologySvg from "../assets/icons/technology.svg"; import TechnologySvg from "../assets/icons/technology.svg";
import RomeLogo from "../assets/romelogo.png";
export const Nav00DataSource = { export const Nav00DataSource = {
wrapper: { className: "header0 home-page-wrapper" }, wrapper: { className: "header0 home-page-wrapper" },
page: { className: "home-page" }, page: { className: "home-page" },