This commit is contained in:
@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
public string PluginVersion
|
public string PluginVersion
|
||||||
{
|
{
|
||||||
get { return "7.6.1-alpha.122.B"; }
|
get { return "7.6.1-alpha.122.C"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string About
|
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
|
//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];
|
long sourceRavenRateId = TravelRateMap[rateId];
|
||||||
//get the source rate and save to the cross rate add to map and return
|
//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.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("id");
|
||||||
d.Remove("concurrency");
|
d.Remove("concurrency");
|
||||||
long ravenId = util.IdFromResponse((await util.PostAsync("service-rate", d.ToString())));
|
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
|
//, add to travel map and return the id
|
||||||
long sourceRavenRateId = ServiceRateMap[rateId];
|
long sourceRavenRateId = ServiceRateMap[rateId];
|
||||||
//get the source rate and save to the cross rate add to map and return
|
//get the source rate and save to the cross rate add to map and return
|
||||||
dynamic d = (await util.GetAsync("service-rate/" + sourceRavenRateId)).ObjectResponse;
|
dynamic d = (await util.GetAsync("service-rate/" + sourceRavenRateId)).ObjectResponse["data"];
|
||||||
d.active = false;//assume it's no longer active
|
d.active = false;//assume it's no longer active
|
||||||
d.name = d.name + " (v8 migrate required)";
|
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.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";
|
|
||||||
d.Remove("id");
|
d.Remove("id");
|
||||||
d.Remove("concurrency");
|
d.Remove("concurrency");
|
||||||
long ravenId = util.IdFromResponse((await util.PostAsync("travel-rate", d.ToString())));
|
long ravenId = util.IdFromResponse((await util.PostAsync("travel-rate", d.ToString())));
|
||||||
|
|||||||
Reference in New Issue
Block a user