The quantity of the line may be negative, so the absolute value must be used. The scenario update does not catch this case because it is a complex case that can not be achieved with the default methods. But it adds various states checks. issue6440 review34911002