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.126B"; }
|
get { return "7.6.1-alpha.127"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string About
|
public string About
|
||||||
@@ -4665,7 +4665,17 @@ namespace AyaNova.PlugIn.V8
|
|||||||
{
|
{
|
||||||
//this is the match, do the fixup
|
//this is the match, do the fixup
|
||||||
//v8 inventory starts with 1 billion so every adjustment will always be *down*
|
//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;
|
dMinStockLevel = v7o.LT_PartByWarehouseInventory_Label_MinStockLevel;
|
||||||
handled = true;
|
handled = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user