Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
justinaroberts
Posts: 8
Registered: 11-13-2008
0
Accepted Solution

Daily Sales Register and Update hangs when Sales Order is being created from back order invoice.

We have counter sales where we enter the sale directly into S/O invoice data entry.  At times there is not enough inventory on hand, and a line is placed on back order.  When the batch is posted at the end of the day, a sales order is created for the back order quantity.  The issue arises that we have business object scripts that display message boxes to ensure to validate the data when orders are entered manually.  These same scripts run when the system creates a sales order from a back order invoice and hangs which then hangs the posting process. 

 

I am looking to disable the scripts OR place a condition within the script that will prevent the message boxes from hanging the system. 

 

Thank you,

 

Justin Roberts

Justin
Super Contributor
connex
Posts: 794
Registered: 10-29-2008
0

Re: Daily Sales Register and Update hangs when Sales Order is being created from back order invoice.

You should be able to change your scripts to test whether it was created by the invoice posting.  The Last Invoice Number field would be filled in that case.

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here
Sage Employee
jepritch
Posts: 235
Registered: 08-25-2009

Re: Daily Sales Register and Update hangs when Sales Order is being created from back order invoice.

There is a property you can check in your script to help you with this. 

 

oSession.Updating

 

If this property has a non-zero value then the object is being executed as part of the update process. 

 

If oSession.Updating<>0 Then

   ' do script

End If

 

Hope that helps

Elliott

 

Sage MAS Partner
justinaroberts
Posts: 8
Registered: 11-13-2008
0

Re: Daily Sales Register and Update hangs when Sales Order is being created from back order invoice.

Thank you, we will give that a try!

Justin