Added new columsn to import BOD-386 BOD-387

This commit is contained in:
Patrick Fic
2020-10-05 13:20:19 -07:00
parent bc0aaf064c
commit 619df3620f
3 changed files with 11 additions and 7 deletions

View File

@@ -121,6 +121,7 @@ namespace BodyshopPartner.Utils
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.ins_co_nm = item.Job.ins_co_nm?.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;
@@ -132,9 +133,13 @@ namespace BodyshopPartner.Utils
newJob.est_data.vehicleid = vehuuid;
}
if (await Utils.Queries.JobsQueries.CheckSupplementByClaimNo(item.Job.clm_no?.Value ?? ""))
string jobId = await Utils.Queries.JobsQueries.CheckSupplementByClaimNo(item.Job.clm_no?.Value ?? "");
if (!string.IsNullOrEmpty(jobId))
{
newJob.issupplement = true;
newJob.jobid = jobId;
};