Allow for null vehicle information & releases file.

This commit is contained in:
Patrick Fic
2021-10-29 16:36:09 -07:00
parent 0768330f15
commit c614bac26b
2 changed files with 4 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ namespace BodyshopPartner.Utils
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.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;