Limiting quantities on sales order

pts.
Tags:
Development
We have two measures for quantity: each and truckload. I am trying to limit the amount of truckloads that can be ordered. Example user can order 50 each of product but not 50 truckloads. the difference would be in the qty field. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

you do input validation I assume.. (you do don’t you) then it is just add another validation i.e.
if (input_truckload) >= 50 then return (‘Invalid Input Truckoad is greater than maximum for one order’)

or

You have entered as %input_truckload% instead of Each are you sure that it is Truckloads of product and not Quanity Each of this item (y/n)

(default entry is n (no)

or simply remove the truckload field entirely and instruct salesmen that 1 truckload is ‘x’ quantity of items and dynamically change the ea to truckloads for the shipping department

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: