From f0edd7030d72233a2d8ea4054de47559db10c8cf Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 18 Aug 2021 22:07:50 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index cbbd648..cefc27c 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8 public string PluginVersion { - get { return "7.6.1-alpha.122.B"; } + get { return "7.6.1-alpha.122.C"; } } public string About @@ -2488,10 +2488,11 @@ namespace AyaNova.PlugIn.V8 //yup, it is now a travel rate but once was a service rate so dupe this travel to service, add to service mapt and return the id long sourceRavenRateId = TravelRateMap[rateId]; //get the source rate and save to the cross rate add to map and return - dynamic d = (await util.GetAsync("travel-rate/" + sourceRavenRateId)).ObjectResponse; + util.ApiResponse a=await util.GetAsync("travel-rate/" + sourceRavenRateId); + dynamic d = a.ObjectResponse["data"]; d.active = false;//assume it's no longer active - d.name = d.name + " (v8 migrate required)"; - d.notes = d.notes + "\nThis record created automatically by v8 migrate because a migrated record is using this as a Service rate but it was changed in v7 to a Travel rate"; + + d.notes = d.notes + "\n### V8 Migrate note: This record created automatically by v8 migrate because a migrated record is using this as a Service rate but it's currently a Travel rate in v7"; d.Remove("id"); d.Remove("concurrency"); long ravenId = util.IdFromResponse((await util.PostAsync("service-rate", d.ToString()))); @@ -2515,10 +2516,9 @@ namespace AyaNova.PlugIn.V8 //, add to travel map and return the id long sourceRavenRateId = ServiceRateMap[rateId]; //get the source rate and save to the cross rate add to map and return - dynamic d = (await util.GetAsync("service-rate/" + sourceRavenRateId)).ObjectResponse; - d.active = false;//assume it's no longer active - d.name = d.name + " (v8 migrate required)"; - d.notes = d.notes + "\nThis record created automatically by v8 migrate because a migrated record is using this as a Travel rate but it was changed in v7 to a Service rate"; + dynamic d = (await util.GetAsync("service-rate/" + sourceRavenRateId)).ObjectResponse["data"]; + d.active = false;//assume it's no longer active + d.notes = d.notes + "\n### V8 Migrate note: This record created automatically by v8 migrate because a migrated record is using this as a Travel rate but it's currnetly a Service rate in v7"; d.Remove("id"); d.Remove("concurrency"); long ravenId = util.IdFromResponse((await util.PostAsync("travel-rate", d.ToString())));