- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Negative order quantity in Sales Order
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 03:24 PM
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.
Solved! Go to Solution.
Re: Negative order quantity in Sales Order
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 03:54 PM
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
Sr. Software Engineer
Sage 100 ERP
Re: Negative order quantity in Sales Order
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 06:58 PM
Thanks a lot Natasha! Works perfectly.
Re: Negative order quantity in Sales Order
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-01-2012 01:34 PM
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


