Added supplement checking.
This commit is contained in:
@@ -78,7 +78,7 @@ namespace BodyshopUploader.Utils
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static async Task GetOpCodes()
|
||||
{
|
||||
var r = new GraphQLRequest
|
||||
@@ -91,7 +91,7 @@ namespace BodyshopUploader.Utils
|
||||
}",
|
||||
Variables = new
|
||||
{
|
||||
key = AppMetaData.ShopRegion + "_ciecaopcodes"
|
||||
key = AppMetaData.ShopRegion + "_ciecaopcodes"
|
||||
}
|
||||
};
|
||||
var data = await Utils.GraphQL.ExecuteQuery(r);
|
||||
@@ -122,6 +122,7 @@ namespace BodyshopUploader.Utils
|
||||
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_amt = item.Job.clm_total?.Value;
|
||||
|
||||
var vehuuid = await Utils.Queries.VehicleQueries.GetVehicleUuidByVin(item?.Job?.vehicle?.data?.v_vin.Value ?? "");
|
||||
if (!string.IsNullOrEmpty(vehuuid))
|
||||
@@ -130,6 +131,12 @@ namespace BodyshopUploader.Utils
|
||||
newJob.est_data.vehicleid = vehuuid;
|
||||
}
|
||||
|
||||
if (await Utils.Queries.JobsQueries.GetJobUuidByClmNo(item.Job.clm_no?.Value ?? ""))
|
||||
{
|
||||
newJob.issupplement = true;
|
||||
};
|
||||
|
||||
|
||||
var r = new GraphQLRequest
|
||||
{
|
||||
Query = @"
|
||||
|
||||
Reference in New Issue
Block a user