This commit is contained in:
2021-08-27 21:51:59 +00:00
parent 7a21ff6714
commit 78e4247349

View File

@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
public string PluginVersion
{
get { return "7.6.1-alpha.126B"; }
get { return "7.6.1-alpha.127"; }
}
public string About
@@ -4665,7 +4665,17 @@ namespace AyaNova.PlugIn.V8
{
//this is the match, do the fixup
//v8 inventory starts with 1 billion so every adjustment will always be *down*
dAdjust = v7o.LT_PartByWarehouseInventory_Label_QuantityOnHand - v8OnHand;
if (v7o.LT_PartByWarehouseInventory_Label_QuantityOnHand < 0)
{
//don't allow negative inventory, log and set to zero instead
progress.Append("NOTE: Negative on hand for " + i.Name + " v7 (" + v7o.LT_PartByWarehouseInventory_Label_QuantityOnHand.ToString() + ") setting as zero in v8");
dAdjust = v8OnHand * -1;
}
else
{
dAdjust = v7o.LT_PartByWarehouseInventory_Label_QuantityOnHand - v8OnHand;
}
dMinStockLevel = v7o.LT_PartByWarehouseInventory_Label_MinStockLevel;
handled = true;
break;