From 1e91ffa6d133ed46010e35448f4d603ea8e20005 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 28 Sep 2021 11:02:35 -0700 Subject: [PATCH] IO-1376 Include op codes for Audatex. --- .../Utils/Decoder/EstimateDecoder.cs | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs b/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs index e550a25..2aab1e0 100644 --- a/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs +++ b/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs @@ -256,7 +256,7 @@ namespace BodyshopPartner.Utils.Decoder ownerRoot.ownr_zip = readValues[93]; ownerRoot.ownr_ctry = readValues[94]; ownerRoot.ownr_ph1 = readValues[95]; - if(String.IsNullOrWhiteSpace(ownerRoot.ownr_ph1.Value)) + if (String.IsNullOrWhiteSpace(ownerRoot.ownr_ph1.Value)) { ownerRoot.ownr_ph1 = readValues[97]; } @@ -287,7 +287,7 @@ namespace BodyshopPartner.Utils.Decoder //j.insd_ph1x = readValues[79]; // j.insd_ph2 = readValues[80]; // j.insd_ph2x = readValues[81]; - + j.ownr_ea = readValues[84]; ownerRoot.ownr_ln = readValues[68]; @@ -364,7 +364,7 @@ namespace BodyshopPartner.Utils.Decoder //Check to see if the owner fields are populated with OWNR_* data. If not, use clmnt. - if(String.IsNullOrWhiteSpace((string)j.ownr_ln) && String.IsNullOrWhiteSpace((string)j.ownr_fn)&& String.IsNullOrWhiteSpace((string)j.ownr_co_nm)) + if (String.IsNullOrWhiteSpace((string)j.ownr_ln) && String.IsNullOrWhiteSpace((string)j.ownr_fn) && String.IsNullOrWhiteSpace((string)j.ownr_co_nm)) { j.ownr_ln = readValues[0]; @@ -1139,18 +1139,17 @@ namespace BodyshopPartner.Utils.Decoder //if part_type is blank, pull in the part type from parttypetousemitchell //if not found, set description to not efined - if (string.IsNullOrEmpty(lin.oem_partno.Value)) - { - try - { - lin.op_code_desc = Utils.AppMetaData.CiecaOpCodes[lin.lbr_op.Value]["desc"].Value; - } - catch (Exception Ex) - { - logger.Warn(Ex, "Couldnt find OpCodeDesc from {0} ", lin.lbr_op.Value); - } + try + { + lin.op_code_desc = Utils.AppMetaData.CiecaOpCodes[lin.lbr_op.Value]["desc"].Value; } + catch (Exception Ex) + { + logger.Warn(Ex, "Couldnt find OpCodeDesc from {0} ", lin.lbr_op.Value); + } + + allLines.Add(lin);