If inventory is received for an item with negative or zero current balance, is there a reason that the Average Cost of the item does not update?
This rule was added many releases ago. The previous code used to simply
adjust the average unit cost even if the balance on hand was zero or
This previous behavior was incorrect because when the balance is zero or
negative there is NO quantity on hand to absorb the cost change and it
abnormally skews the average cost. The current rule is correct, it
checks for a condition where the current balance is zero or negative and
if so, does not apply further average cost changes.