Preventing GR

Hi, I have a scenario. I want to raise an error when the sum of quantity in stock and the quantity in Purchase Order is greater than the Maximum quantity that is allowed to be in stock for an item. How to acheive that. Plz help.

You need to alter the code where it’s checking for inventory levels and add a new check against the maximum quantity. Or you could make the check right away on the validation code of the Purchase Line field Quantity.