I'm trying to build a simple order entry screen. I have an Item Table with a field representing the minimum qty that can be ordered for each item. In the order entry screen, I have a field to enter the qty the customer orders.
I need a code to validate or automatically change the qty ordered to a multiple of the minimum qty.
For example:
If the Minimum_Qty is 3,
The value of the Qty_Ordered needs to be a multiple of 3.
If the user tries to enter 2, i want a window to pop up saying to qty must be a multiple of (the minimum for the item entered) or for the value to automatically round up to the nearest multiple of the minimum.
any help on this?
I need a code to validate or automatically change the qty ordered to a multiple of the minimum qty.
For example:
If the Minimum_Qty is 3,
The value of the Qty_Ordered needs to be a multiple of 3.
If the user tries to enter 2, i want a window to pop up saying to qty must be a multiple of (the minimum for the item entered) or for the value to automatically round up to the nearest multiple of the minimum.
any help on this?