evaluate a minimum quantity by using validate method

hi all,

i have the following requirement,

When a user create a sales order and sales lines, check for the min mandatory stock in the ‘quantity’ field and if the stock becomes less than the already entered minimum quantity in another form, it should give a warning message,

anybody please help with what is the code dat i have to add in ‘validate’ method of the ‘quantity’ field

please help, thank you in advance.

The critical on-hand inventory Report in Inventory Management is meant for the similar purpose, you should probably look into the \Reports\InventSumCritical\Methods\send(In ax 2009) to understand the logic behind it