MPI Aftermarket Custom Wheel 50% Ignore V1 Rule
This commit is contained in:
@@ -85,7 +85,6 @@ async function DecodeEstimate(filePath, includeFilePathInReturnJob = false, clos
|
||||
// returnValue = { ERROR: "Vehicle mileage is less than 20,000kms." };
|
||||
// } else
|
||||
|
||||
|
||||
if (!accepted_ins_co.includes(job.INS_CO_NM)) {
|
||||
returnValue = {
|
||||
ERROR: `Insurance Company Name is not valid for RPS. (${job.INS_CO_NM || "No name set"})`
|
||||
@@ -478,8 +477,9 @@ function V1Ruleset(jobline, joblines) {
|
||||
|
||||
//Wheel Repair Pricing PRS-82
|
||||
//Verified on 08/24/21
|
||||
// 2026-05-21 Added logic to apply to PAA as Custom Aftermarket Wheels with 50% discount are ignored. IM-8656
|
||||
if (
|
||||
jobline.part_type === "PAN" &&
|
||||
(jobline.part_type === "PAN" || jobline.part_type === "PAA") &&
|
||||
jobline.line_desc.toLowerCase().includes("wheel") &&
|
||||
Math.abs(jobline.prt_dsmk_m) === Math.round((jobline.act_price / 2) * 100) / 100
|
||||
) {
|
||||
@@ -667,7 +667,7 @@ function SGI_V1Ruleset(jobline, joblines) {
|
||||
} else if (jobline.oem_partno.toLowerCase().includes("/rps")) {
|
||||
jobline.ignore = false;
|
||||
}
|
||||
//Copy of SGI V2 - duplicated to prevent impacts to MPI.
|
||||
//Copy of SGI V2 - duplicated to prevent impacts to MPI.
|
||||
//Remove any glass related items.
|
||||
if (jobline.mod_lbr_ty?.toUpperCase() === "LAG") {
|
||||
jobline.ignore = true;
|
||||
@@ -687,7 +687,7 @@ function SGI_V1Ruleset(jobline, joblines) {
|
||||
jobline.ignore = true;
|
||||
}
|
||||
|
||||
//Is it the use parts line threshold? Added at the end to undo the 900500 lines.
|
||||
//Is it the use parts line threshold? Added at the end to undo the 900500 lines.
|
||||
if (jobline.line_desc.toUpperCase().includes("USED PARTS THRESHOLD")) {
|
||||
jobline.ignore = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user