From b43be5c2d355bf54793bb284e38c5d5f9cd32071 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 27 Jan 2022 12:55:43 -0800 Subject: [PATCH] Resolve PPG issue for manually created jobs missing paint codes. --- BodyshopUploader/Properties/AssemblyInfo.cs | 2 +- BodyshopUploader/Releases/RELEASES | 4 +++- BodyshopUploader/Utils/PPGMixData.cs | 4 +++- BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/BodyshopUploader/Properties/AssemblyInfo.cs b/BodyshopUploader/Properties/AssemblyInfo.cs index c6cf421..de25df7 100644 --- a/BodyshopUploader/Properties/AssemblyInfo.cs +++ b/BodyshopUploader/Properties/AssemblyInfo.cs @@ -51,7 +51,7 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.26.0")] +[assembly: AssemblyVersion("1.0.27.0")] [assembly: AssemblyFileVersion("1.0.0.0")] //Setting Squirrel Aware Version. [assembly: AssemblyMetadata("SquirrelAwareVersion", "1")] \ No newline at end of file diff --git a/BodyshopUploader/Releases/RELEASES b/BodyshopUploader/Releases/RELEASES index 299c7db..c7b4236 100644 --- a/BodyshopUploader/Releases/RELEASES +++ b/BodyshopUploader/Releases/RELEASES @@ -48,4 +48,6 @@ C15C0B6EE335E383F2CEF0EFA32027B7210AA312 ImEXOnlinePartner-1.0.22-full.nupkg 518 8E9C189C1D8D768FEA5E3E4B6726C1591F50026D ImEXOnlinePartner-1.0.25-delta.nupkg 58605 F502E648C6A0C95ED82247B106CC2D6CBF14BFA6 ImEXOnlinePartner-1.0.25-full.nupkg 5303888 3E5481B1FFA814BF5BAE995F1CF54A7B9C57AAF7 ImEXOnlinePartner-1.0.26-delta.nupkg 246927 -83CF6EBEB7A28CCA28633494874C9F3C19ABEF64 ImEXOnlinePartner-1.0.26-full.nupkg 5474941 \ No newline at end of file +83CF6EBEB7A28CCA28633494874C9F3C19ABEF64 ImEXOnlinePartner-1.0.26-full.nupkg 5474941 +426B816DF1D2B9D4C4CEE830C66CE6744C0E4F02 ImEXOnlinePartner-1.0.27-delta.nupkg 75385 +FF8A2B1EF451CEDB05366A6C119C6CE4E1CBAD58 ImEXOnlinePartner-1.0.27-full.nupkg 5454463 \ No newline at end of file diff --git a/BodyshopUploader/Utils/PPGMixData.cs b/BodyshopUploader/Utils/PPGMixData.cs index a793b6c..a836bd0 100644 --- a/BodyshopUploader/Utils/PPGMixData.cs +++ b/BodyshopUploader/Utils/PPGMixData.cs @@ -111,7 +111,9 @@ v_paint_codes foreach (dynamic job in data.jobs) { + + logger.Debug($"{job.ro_number}"); doc.Element("PPG").Element("DataInterface").Element("ROData").Element("RepairOrders").Add(new XElement("RO", new XElement("RONumber", job.ro_number?.Value), new XElement("ROStatus", "Open"), @@ -122,7 +124,7 @@ v_paint_codes new XElement("ModelYear", job.v_model_yr?.Value), new XElement("MakeDesc", job.v_make_desc?.Value), new XElement("ModelName", job.v_model_desc?.Value), - new XElement("OEMColorCode", job.vehicle?.v_paint_codes?.paint_cd1?.Value), + new XElement("OEMColorCode", job.vehicle?.v_paint_codes?.Value == null ? "": job.vehicle?.v_paint_codes?.paint_cd1?.Value), new XElement("RefinishLaborHours", job.larhrs?.aggregate?.sum.mod_lb_hrs?.Value), new XElement("InsuranceCompanyName", job.ins_co_nm?.Value), new XElement("EstimatorName", $"{job.est_ct_ln}, {job.est_ct_fn}"), diff --git a/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 b/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 index 1eb19ff..7f374c9 100644 --- a/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 +++ b/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 @@ -29,4 +29,5 @@ Switch ($PSversion) { 4 {v2} 5 {v2} 6 {v2} + 7 {v2} } \ No newline at end of file