how to validate quantity when available stock is less than document quantity because current stock is greater than or equal to document quantity