Add handling of Ownr Co Nm from MCE.

This commit is contained in:
Patrick Fic
2021-12-06 08:18:55 -08:00
parent caccf7d7ad
commit 2516158110
2 changed files with 6 additions and 6 deletions

View File

@@ -53,7 +53,8 @@ async function DecodeEstimate(filePath, includeFilePathInReturnJob = false) {
if (job.OWNR_FN === "" || !job.OWNR_FN) job.OWNR_FN = ad2.CLMT_FN;
if (job.OWNR_LN === "" || !job.OWNR_LN) job.OWNR_LN = ad2.CLMT_LN;
if (job.OWNR_CO_NM) job.OWNR_LN = `${job.OWNR_LN} ${job.OWNR_CO_NM}`;
delete job.OWNR_CO_NM;
const accepted_ins_co = store.get("accepted_ins_co");
let returnValue;
@@ -183,7 +184,7 @@ async function DecodeAd1File(extensionlessFilePath) {
"OWNR_LN",
"OWNR_FN",
// "OWNR_TITLE",
// "OWNR_CO_NM",
"OWNR_CO_NM",
// "OWNR_ADDR1",
// "OWNR_ADDR2",
// "OWNR_CITY",
@@ -446,7 +447,7 @@ async function DecodeLinFile(extensionlessFilePath) {
//08/24/21 - Norm to take as action item to determine what the final set of rules were per Derek.
// if (jobline.glass_flag && jobline.part_type !== "PAL") {
// jobline.ignore = true;
// }
//09/2021 Detect NAGS lines using RegEx for the Part Number
@@ -465,7 +466,6 @@ async function DecodeLinFile(extensionlessFilePath) {
jobline.db_ref.startsWith("900") ||
jobline.line_desc.toLowerCase().startsWith("urethane") ||
jobline.line_desc.toLowerCase().startsWith("w/shield adhesive") ||
//jobline.line_desc.toLowerCase().includes("wheel") || Removed as a part of RPS-41
jobline.line_desc.toLowerCase().includes("tire") ||
jobline.line_desc.toLowerCase().startsWith("hazardous") ||