This commit is contained in:
2021-08-18 22:07:50 +00:00
parent a420eaf540
commit f0edd7030d

View File

@@ -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())));