# evaluate a minimum quantity by using validate method

**URL:** <https://www.dynamicsuser.net/t/evaluate-a-minimum-quantity-by-using-validate-method/42574>\
**Category:** Technical Forum\
**Created:** [December 28, 2012, 10:49am UTC](https://www.dynamicsuser.net/t/evaluate-a-minimum-quantity-by-using-validate-method/42574 "2012-12-28T10:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adithya90](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@adithya90](https://www.dynamicsuser.net/u/adithya90)\
**Post date:** [December 28, 2012, 10:49am UTC](https://www.dynamicsuser.net/t/evaluate-a-minimum-quantity-by-using-validate-method/42574/1 "2012-12-28T10:49:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://www.dynamicsuser.net/u/kranthi)\
**Post date:** [December 28, 2012, 12:42pm UTC](https://www.dynamicsuser.net/t/evaluate-a-minimum-quantity-by-using-validate-method/42574/2 "2012-12-28T12:42:15Z")

</div>

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
