Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 36993

Forum Post: Prevent user to order Item for unauthorized vendors

$
0
0
Hi Forum, I need to be able to prevent the user for enter orders for vendors that are not approved to order from. The script works ok, except that it is letting the user continue with the order.  Verifies that the vendor is approved if not i have the following message. if InvApprov "Y" then strMsg = " InvApprov is ok ..." retVal = oSession.AsObject(oSession.UI).MessageBox("",strMsg) retVal = oScript.SetError("Vendor is not approved for Inventory Purchases") 'exit sub strMsg = " SetError retVal ..." & retVal retVal = oSession.AsObject(oSession.UI).MessageBox("",strMsg) end if The message that the "Vendor is not approved"... doesn't display and i am not getting an error message... I have another script that i am using the prevents the user of changing Warehouse code and works fine.  What i need is the user to click on the message and the cursor to go back to the Item Code field. Any ideas?... Regards, Manuel Roman

Viewing all articles
Browse latest Browse all 36993

Trending Articles