BOD-59 Added vehicle fields to job as a part of decoding.

This commit is contained in:
Patrick Fic
2020-03-30 10:16:19 -07:00
parent 586c8181ea
commit 2fe5793479
2 changed files with 10 additions and 1 deletions

View File

@@ -23,7 +23,7 @@
See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers. See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
--> -->
<target name="file" xsi:type="File" <target name="file" xsi:type="File"
layout="| ${level:uppercase=true} | ${longdate} ${logger} | ${message}${exception:format=ToString}" layout="${level:uppercase=true} | ${longdate} ${logger} | ${message}${exception:format=ToString}"
fileName="${basedir}/logs/BSU-${shortdate}.log" fileName="${basedir}/logs/BSU-${shortdate}.log"
maxArchiveFiles="10" maxArchiveFiles="10"
archiveAboveSize="102400" archiveAboveSize="102400"

View File

@@ -768,6 +768,15 @@ namespace BodyshopUploader.Utils.Decoder
j.vehicle = new JObject(); j.vehicle = new JObject();
j.vehicle.data = v; j.vehicle.data = v;
//Capturing vehicle information on the job as well.
j.plate_no = readValues[3]?.ToString();
j.plate_st = readValues[4]?.ToString();
j.v_vin = readValues[5]?.ToString();
j.v_model_yr = readValues[8]?.ToString();
j.v_make_desc = readValues[10]?.ToString();
j.v_model_desc = readValues[11]?.ToString();
j.v_color = readValues[18]?.ToString();
v.shopid = AppMetaData.ActiveShopId; v.shopid = AppMetaData.ActiveShopId;
} }
return; return;