From 90202e2d3c49222fa689d0ead05e34cba3d5895a Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 24 Feb 2023 15:20:35 -0800 Subject: [PATCH] Correct incoming sources. --- BodyshopUploader/Utils/Decoder/EstimateDecoder.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs b/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs index eaf8650..d74f96e 100644 --- a/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs +++ b/BodyshopUploader/Utils/Decoder/EstimateDecoder.cs @@ -36,7 +36,7 @@ namespace BodyshopPartner.Utils.Decoder bool ad2Success = ParseAd2File(ref ret, _dir); bool vehSuccess = ParseVehFile(ref ret, _dir); bool pfhSuccess = ParsePfhFile(ref ret, _dir); - bool pflSuccess = ParsePflFile(ref ret, _dir, _source); + bool pflSuccess = ParsePflFile(ref ret, _dir, system); bool pfmSuccess = ParsePfmFile(ref ret, _dir); bool stlSuccess = ParseStlFile(ref ret, _dir); bool ttlSuccess = ParseTtlFile(ref ret, _dir); @@ -627,7 +627,7 @@ namespace BodyshopPartner.Utils.Decoder return false; } - public static bool ParsePflFile(ref dynamic j, string RootFilePath, SourceSystem _source = SourceSystem.Mitchell) + public static bool ParsePflFile(ref dynamic j, string RootFilePath, string system = "M") { if (string.IsNullOrWhiteSpace(j.ciecaid.Value)) { @@ -693,16 +693,13 @@ namespace BodyshopPartner.Utils.Decoder j.rate_lau = readValues[2]; break; case "LA1": - if (_source == SourceSystem.Audatex) - { j.rate_laa = readValues[2]; } - else { j.rate_la1 = readValues[2]; } break; case "LA2": j.rate_la2 = readValues[2]; break; case "LA3": - if (_source == SourceSystem.Mitchell) + if (system == "M") { j.rate_laa = readValues[2]; } else { j.rate_la3 = readValues[2]; }