Stop Sales Order Processing

Discussions relating to breakout scripting, .NET and COM programming with Jiwa objects.

Stop Sales Order Processing

Postby in2solutions » Mon Sep 07, 2015 2:36 pm

Software: Jiwa 6.513
I would like to insert some breakout code when the operator clicks Record \ Process on a sales order.

Effectively I am wanting to stop the sales order processing when their sales division is set to “USD”
I have the following code:
If SalesOrderObject.BranchID = “023524BC1C1D4E8086E2” then
MsgBox “USD Branch. Order Cannot Be Processed”
rtnCancel = True
End If

This does not seem to work. Can you let me know which breakout this should go against and if this code is correct.
Regards,
George
in2solutions
I'm new here
I'm new here
 
Posts: 2
Joined: Mon Sep 07, 2015 2:28 pm

Return to Technical / Programming

Who is online

Users browsing this forum: No registered users and 4 guests

cron