inventory adjustments -- merge from 1.8 branch.
inventory adjustment -- spec