AD2 parsing, PFH parsing, PFL parsing.
This commit is contained in:
@@ -87,6 +87,9 @@ namespace BodyshopUploader.Utils
|
||||
{
|
||||
//TODO: This should perform some sort of upsert to update the vehicle with more up to date information.
|
||||
|
||||
//Strip out what isn't needed by replacing it with nulls to save DB space.
|
||||
//https://stackoverflow.com/questions/29475467/when-merging-objects-using-newtonsoft-json-how-do-you-ignore-empty-string-value
|
||||
((JObject)item.Job).RemovePropertiesByValue(v => v.Type == JTokenType.String && string.IsNullOrEmpty((string)v.Value));
|
||||
|
||||
|
||||
//Add to Holding Queue
|
||||
@@ -95,9 +98,9 @@ namespace BodyshopUploader.Utils
|
||||
newJob.bodyshopid = AppMetaData.ActiveShopId;
|
||||
newJob.cieca_id = item.Job.ciecaid;
|
||||
newJob.est_data = item.Job;
|
||||
newJob.ownr_name = item.Job.ownr_fn.Value + " " + item.Job.ownr_ln.Value;
|
||||
newJob.ownr_name = item.Job.ownr_fn?.Value + " " + item.Job.ownr_ln?.Value;
|
||||
newJob.vehicle_info = item.Job.vehicle.data.v_model_yr.Value + " " + item.Job.vehicle.data.v_make_desc.Value + " " + item.Job.vehicle.data.v_model_desc.Value;
|
||||
newJob.clm_no = item.Job.clm_no.Value;
|
||||
newJob.clm_no = item.Job.clm_no?.Value;
|
||||
|
||||
var vehuuid = await Utils.Queries.VehicleQueries.GetVehicleUuidByVin(item?.Job?.vehicle?.data?.v_vin.Value ?? "");
|
||||
if (!string.IsNullOrEmpty(vehuuid))
|
||||
|
||||
Reference in New Issue
Block a user