Final changes for new rulesets.
This commit is contained in:
@@ -339,7 +339,7 @@ async function DecodeLinFile(extensionlessFilePath, close_date) {
|
||||
// "ALT_PARTM",
|
||||
"PRT_DSMK_P",
|
||||
|
||||
// "MOD_LBR_TY",
|
||||
"MOD_LBR_TY",
|
||||
// "DB_HRS",
|
||||
// "MOD_LB_HRS",
|
||||
// "LBR_INC",
|
||||
@@ -390,6 +390,13 @@ async function DecodeLinFile(extensionlessFilePath, close_date) {
|
||||
break;
|
||||
}
|
||||
|
||||
//Moved from V1 function as they may be needed later.
|
||||
delete jobline.prt_dsmk_m; //Delete price markup for wheel repair
|
||||
delete jobline.mod_lbr_ty;
|
||||
delete jobline.prt_dsmk_p;
|
||||
delete jobline.glass_flag;
|
||||
delete jobline.price_j;
|
||||
delete jobline.line_ref;
|
||||
return jobline;
|
||||
});
|
||||
|
||||
@@ -503,11 +510,6 @@ function V1Ruleset(jobline, joblines) {
|
||||
jobline.ignore = false;
|
||||
}
|
||||
|
||||
delete jobline.prt_dsmk_m; //Delete price markup for wheel repair
|
||||
delete jobline.prt_dsmk_p;
|
||||
delete jobline.glass_flag;
|
||||
delete jobline.price_j;
|
||||
delete jobline.line_ref;
|
||||
return jobline;
|
||||
}
|
||||
|
||||
@@ -518,7 +520,7 @@ function V2Ruleset(jobline, joblines) {
|
||||
V1Ruleset(jobline, joblines);
|
||||
|
||||
//Remove any glass related items.
|
||||
if (jobline.part_type.toUpperCase() === "PAG") {
|
||||
if (jobline.mod_lbr_ty?.toUpperCase() === "LAG") {
|
||||
jobline.ignore = true;
|
||||
}
|
||||
|
||||
@@ -558,6 +560,10 @@ const AdasDescriptions = [
|
||||
"air bag rollover",
|
||||
"air bag rotary coupler",
|
||||
"air bag safing sensor",
|
||||
"air bag satellite sensor",
|
||||
"air bag screw",
|
||||
"air bag seat",
|
||||
"air bag warning",
|
||||
"air bag ocs",
|
||||
"air bag opds",
|
||||
"air bag sensor",
|
||||
@@ -576,6 +582,10 @@ const AdasDescriptions = [
|
||||
"air bag spiral",
|
||||
"air bag restraint",
|
||||
"air bag wire harness",
|
||||
"drivers knee air bag",
|
||||
"drivers seat air bag",
|
||||
"inform label air bag",
|
||||
"pass air bag wire",
|
||||
"air bag extension",
|
||||
"air bag caution",
|
||||
"connector air bag",
|
||||
@@ -594,26 +604,18 @@ const AdasDescriptions = [
|
||||
"back air bag",
|
||||
"air bag reel",
|
||||
"air bag discriminating",
|
||||
"air bag satellite sensor",
|
||||
"air bag screw",
|
||||
"air bag seat",
|
||||
"air bag warning",
|
||||
"air bag wiring",
|
||||
"air bag combination",
|
||||
"air bag connector",
|
||||
"air bag plug",
|
||||
"drivers knee air bag",
|
||||
"drivers seat air bag",
|
||||
"inform label air bag",
|
||||
"pass air bag wire",
|
||||
"rear air bag",
|
||||
"air bag clip",
|
||||
"air bag gas",
|
||||
"air bag bracket",
|
||||
"air bag curtain",
|
||||
"air bag initiator",
|
||||
"air bag positive",
|
||||
"engine wiring harness for air bag",
|
||||
"air bag wiring",
|
||||
"air bag combination",
|
||||
"air bag connector",
|
||||
"air bag plug",
|
||||
"rear air bag",
|
||||
"air bag clip",
|
||||
"air bag gas",
|
||||
"air bag bracket",
|
||||
"suspension air bag",
|
||||
"passenger air bag",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user