I need to obtain the Sales Order Type ( among other things ) when the sales order is changed.
for example - in Verion 6513 i have a bit of code on the "Sales Order Changed" event
the code detects "SalesOrderObject.OrderType" when the "Order Type" drop down is changed ( such as Reserve order , Invoice Order etc ...)
The event gives a integer value for the SalesOrderObject.OrderType property - such as 0 for Reserve , 1 for Invoice.
I am trying to replicate this behaviour on Jiwa 7 using the "SalesOrder.PropertyChanged" event however
the "salesOrder.SalesOrderType" property always gives me the value zero ( and the constant - e_SalesOrderNormalSalesOrder)
This makes me think the Property of salesOrder.SalesOrderType in Jiwa 7 is not the same as ""SalesOrderObject.OrderType" in 6513.
* also more importantly - I need to be able to cancel the user action when the user changes the Order Type on the screen and revert back to what it was before ( such as user changes to Invoice Order from Reserve - I need to put it back to Reserve) - this event does not respond to user cancelled exception too..
can someone give me some tips here please ?


