Correct incoming sources.

This commit is contained in:
Patrick Fic
2023-02-24 15:20:35 -08:00
parent 99c6dbb594
commit 90202e2d3c

View File

@@ -36,7 +36,7 @@ namespace BodyshopPartner.Utils.Decoder
bool ad2Success = ParseAd2File(ref ret, _dir); bool ad2Success = ParseAd2File(ref ret, _dir);
bool vehSuccess = ParseVehFile(ref ret, _dir); bool vehSuccess = ParseVehFile(ref ret, _dir);
bool pfhSuccess = ParsePfhFile(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 pfmSuccess = ParsePfmFile(ref ret, _dir);
bool stlSuccess = ParseStlFile(ref ret, _dir); bool stlSuccess = ParseStlFile(ref ret, _dir);
bool ttlSuccess = ParseTtlFile(ref ret, _dir); bool ttlSuccess = ParseTtlFile(ref ret, _dir);
@@ -627,7 +627,7 @@ namespace BodyshopPartner.Utils.Decoder
return false; 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)) if (string.IsNullOrWhiteSpace(j.ciecaid.Value))
{ {
@@ -693,16 +693,13 @@ namespace BodyshopPartner.Utils.Decoder
j.rate_lau = readValues[2]; j.rate_lau = readValues[2];
break; break;
case "LA1": case "LA1":
if (_source == SourceSystem.Audatex)
{ j.rate_laa = readValues[2]; }
else
{ j.rate_la1 = readValues[2]; } { j.rate_la1 = readValues[2]; }
break; break;
case "LA2": case "LA2":
j.rate_la2 = readValues[2]; j.rate_la2 = readValues[2];
break; break;
case "LA3": case "LA3":
if (_source == SourceSystem.Mitchell) if (system == "M")
{ j.rate_laa = readValues[2]; } { j.rate_laa = readValues[2]; }
else else
{ j.rate_la3 = readValues[2]; } { j.rate_la3 = readValues[2]; }