This commit is contained in:
@@ -146,7 +146,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#if(!DEBUG)
|
||||||
//check if in migrate mode
|
//check if in migrate mode
|
||||||
if (util.ServerState != "MigrateMode")
|
if (util.ServerState != "MigrateMode")
|
||||||
{
|
{
|
||||||
@@ -154,6 +154,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
"Target server is in \"Migrate mode\"");
|
"Target server is in \"Migrate mode\"");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
Opt dOpt = new Opt();
|
Opt dOpt = new Opt();
|
||||||
@@ -3636,11 +3637,19 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//get all parts in list
|
//get all parts in list
|
||||||
PartPickList pl = PartPickList.GetAllParts();
|
PartPickList pl = PartPickList.GetAllParts();
|
||||||
|
|
||||||
|
//iterate all parts
|
||||||
foreach (PartPickList.PartPickListInfo i in pl)
|
foreach (PartPickList.PartPickListInfo i in pl)
|
||||||
{
|
{
|
||||||
progress.SubOp("sync part " + i.Name);
|
progress.SubOp("sync part " + i.Name);
|
||||||
PartInventoryValuesFetcher v7inv = PartInventoryValuesFetcher.GetItem(i.ID);
|
PartInventoryList v7inv = PartInventoryList.GetListForSingleItem(i.ID);
|
||||||
var v8inv = (await util.GetAsync("part/latest-inventory/" + Getv7v8IdMap(i.ID, "part id for synchronize inventory"))).ObjectResponse;
|
JObject v8inv = (await util.GetAsync("part/latest-inventory/" + Getv7v8IdMap(i.ID, "part id for synchronize inventory"))).ObjectResponse;
|
||||||
|
//iterate v8 inventory
|
||||||
|
foreach (JObject v8o in v8inv["data"])
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
//find matching v7 item and adjust
|
||||||
|
//no v7 item then set to zeros
|
||||||
|
|
||||||
}
|
}
|
||||||
//iterate the parts
|
//iterate the parts
|
||||||
|
|||||||
Reference in New Issue
Block a user