diff --git a/BodyshopUploader/Releases/RELEASES b/BodyshopUploader/Releases/RELEASES index 8b4deca..512d379 100644 --- a/BodyshopUploader/Releases/RELEASES +++ b/BodyshopUploader/Releases/RELEASES @@ -32,4 +32,6 @@ AFC97D32A72155DDCDC9FA0C42E0E0309FD80E1A ImEXOnlinePartner-1.0.14-delta.nupkg 52 6E1FF9DBDACF7FCD499CA8CCA8B6252208878A9B ImEXOnlinePartner-1.0.17-delta.nupkg 50415 A9081BA70BD2247EB20FC11BC55506C92873323B ImEXOnlinePartner-1.0.17-full.nupkg 5152981 C2BD7AD989BBE3A6D16D6BB0790E611FC1C43A2C ImEXOnlinePartner-1.0.18-delta.nupkg 192001 -D62C10039629E09EC5343B530503D1E2DC1EEBD4 ImEXOnlinePartner-1.0.18-full.nupkg 5158717 \ No newline at end of file +D62C10039629E09EC5343B530503D1E2DC1EEBD4 ImEXOnlinePartner-1.0.18-full.nupkg 5158717 +390A447A753333F560D01B73FC22B4D0A53343E7 ImEXOnlinePartner-1.0.19-delta.nupkg 37769 +2B86634D71112809C91C1F1A5CC4119B4A0F4EC6 ImEXOnlinePartner-1.0.19-full.nupkg 5158927 \ No newline at end of file diff --git a/BodyshopUploader/Utils/JobProcessingQueue.cs b/BodyshopUploader/Utils/JobProcessingQueue.cs index 62e885a..08a067b 100644 --- a/BodyshopUploader/Utils/JobProcessingQueue.cs +++ b/BodyshopUploader/Utils/JobProcessingQueue.cs @@ -145,7 +145,7 @@ namespace BodyshopPartner.Utils 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 ?? ""); + var vehuuid = await Utils.Queries.VehicleQueries.GetVehicleUuidByVin(item?.Job?.vehicle?.data?.v_vin?.Value ?? ""); if (!string.IsNullOrEmpty(vehuuid)) { newJob.est_data.vehicle = null; diff --git a/BodyshopUploader/ViewModels/MainViewModel.cs b/BodyshopUploader/ViewModels/MainViewModel.cs index 5554de5..eb67f79 100644 --- a/BodyshopUploader/ViewModels/MainViewModel.cs +++ b/BodyshopUploader/ViewModels/MainViewModel.cs @@ -93,15 +93,20 @@ namespace BodyshopPartner.ViewModels -#if (!DEBUG) + #if (!DEBUG) if (!Utils.AppMetaData.IsTest) { logger.Debug("Checking if updates are available."); - await Utils.UpdateHandler.UpdateAppEasy((val) => UpdateProgress = val); + UpdateAvailable = await Utils.UpdateHandler.AreUpdatesAvailable(); + if (UpdateAvailable) + { + logger.Debug("Updates are available!"); + await Utils.UpdateHandler.UpdateAppEasy((val) => UpdateProgress = val); + } + + } - //UpdateAvailable = await Utils.UpdateHandler.AreUpdatesAvailable(); - //if (UpdateAvailable) - //{ + // string msg = "An update to ImEX Online Partner is Available. It will be automatically downloaded and applied."; // Utils.Notifications.notifier.ShowInformation(msg); // logger.Debug("Updates are available! Installing."); @@ -116,7 +121,7 @@ namespace BodyshopPartner.ViewModels // } //} -#endif + #endif }