Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS 90 Customer
jasonitspyder
Posts: 108
Registered: 12-15-2010
0
Accepted Solution

Negative order quantity in Sales Order

Hi,

 

I'm wondering how can I prevent my sales people entering a *negative* order quantity in a Sales Order entry?

 

The reason why I'm asking this is because I believe this negative quantity (negative SO amount) will circumvent the credit limit checking. It also makes the available quantity not accurate.

 

Running MAS 200 4.4 PU4.

 

Please help. Thanks.

Moderator
Natasha
Posts: 180
Registered: 07-15-2009
0

Re: Negative order quantity in Sales Order

You can write a simple user-defined script to validate quantity ordered.

 

In SO_SalesOrderDetail - Pre Validate QuantityOrdered:

 

retVal = 0

qty = 0

retVal = oBusObj.GetValue("QuantityOrdered", qty)

if qty < 0 then 

     retVal = oScript.SetError("Quantity must be greater than 0")

end if

Natasha Chang
Sr. Software Engineer
Sage 100 ERP
Sage MAS 90 Customer
jasonitspyder
Posts: 108
Registered: 12-15-2010
0

Re: Negative order quantity in Sales Order

Thanks a lot Natasha! Works perfectly.

zip Sage MAS Partner
Sage MAS Partner
zip
Posts: 394
Registered: 11-17-2008
0

Re: Negative order quantity in Sales Order

You could also just set the Validation on the Quantity Ordered field with a Range of 0 thru 9999999999999999 - via Custom Office > UDF Maint > S/O Sales Order Detail > Advanced Field Settings

 

- Brett Zimmerman, brett@oasisky.com
Senior Consultant and Customer Care Manager
c 617-775-8611, www.oasisky.com

Twitter: MAS90_Zip, Member: 90 Minds