This commit is contained in:
2021-08-16 23:31:03 +00:00
parent c4cd76b5f2
commit 778f625497

View File

@@ -3607,35 +3607,12 @@ namespace AyaNova.PlugIn.V8
#region Synchronize inventory
private async System.Threading.Tasks.Task SynchronizeInventory(ProgressForm progress)
{
if (!progress.KeepGoing) return;
if (!V7UseInventory) return;
progress.Append("Synchronizing inventory");
progress.Op("Synchronize inventory");
progress.SubOp("");
//fetch all v7 inventory?? (or part by part??)
// string xcrit= "<?xml version=\"1.0\" encoding=\"utf-16\" standalone=\"yes\"?>"
//+"<GRIDCRITERIA> <COLUMNITEM CM=\"aPartWarehouse.aName\" UI=\"LT_O_PartWarehouse\" SORT=\"ASC\" />"
// +"<COLUMNITEM CM=\"aPart.aPartNumber\" UI=\"LT_O_Part\" SORT=\"ASC\" />"
// +"<COLUMNITEM CM=\"aPartByWarehouseInventory.aQuantityOnHand\" UI=\"LT_PartByWarehouseInventory_Label_QuantityOnHand\" PIN=\"0\" WIDTH=\"81\" />"
// +"<COLUMNITEM CM=\"aPartByWarehouseInventory.aMinStockLevel\" UI=\"LT_PartByWarehouseInventory_Label_MinStockLevel\" PIN=\"0\" WIDTH=\"76\" />"
// +"<COLUMNITEM CM=\"AREORDERQUANTITY\" UI=\"LT_PartByWarehouseInventory_Label_ReorderQuantity\" PIN=\"0\" WIDTH=\"100\" />"
// +"<COLUMNITEM CM=\"aPartByWarehouseInventory.aQuantityOnOrder\" UI=\"LT_PartByWarehouseInventory_Label_QuantityOnOrder\" PIN=\"0\" WIDTH=\"66\" />"
// +"<COLUMNITEM CM=\"AVENDWHOLE.ANAME\" UI=\"LT_Part_Label_WholesalerID\" PIN=\"0\" WIDTH=\"104\" />"
// +"<COLUMNITEM CM=\"aPartCategory.aName\" UI=\"LT_O_PartCategory\" PIN=\"0\" WIDTH=\"139\" />"
// +"<COLUMNITEM CM=\"aPart.aActive\" UI=\"LT_Part_Label_Active\" PIN=\"0\" WIDTH=\"78\" />"
// +"<COLUMNITEM CM=\"aPart.aRetail\" UI=\"LT_Part_Label_Retail\" PIN=\"0\" WIDTH=\"79\" />"
// +"<COLUMNITEM CM=\"aPart.aCost\" UI=\"LT_Part_Label_Cost\" PIN=\"0\" WIDTH=\"79\" />"
//+"</GRIDCRITERIA>";
// PartWarehouseInventoryList l = PartWarehouseInventoryList.GetList(xcrit);
// //foreach v7 inventory get v8 balance, calc adjustment then issue it
// //also make a partstocklevel entry if required
// foreach (PartWarehouseInventoryList.PartWarehouseInventoryListInfo i in l)
// {
// long? v8
// }
//get all parts in list
PartPickList pl = PartPickList.GetAllParts();