Change to Sales Order Processing and Batch Processing Screen
Hi All,
I have a requirement to change the processing of a sales order under certain conditions, namely I need to create multiple debtor transactions per sales order history if certain custom fields are set. Mike's advice which I am following is to take over the processing in process start event and then throw a ClientCancelledException at the end so that Jiwa won't try and process the order. This works fine for a single order but in the batch processing screen will result in candidates that look like they haven't processed even though I can put in a success message in the ClientCancelledException constructor.
Is it possible to to inherit from the Batch Processing Object such as
and then override the Process to ignore client ClientCancelledException and then attach this new object to the Jiwa Batch processing form or is there another type of exception that can be thrown that will make Jiwa think everything processed correctly as this would be an easier solution?
Any help is appreciated.
I have a requirement to change the processing of a sales order under certain conditions, namely I need to create multiple debtor transactions per sales order history if certain custom fields are set. Mike's advice which I am following is to take over the processing in process start event and then throw a ClientCancelledException at the end so that Jiwa won't try and process the order. This works fine for a single order but in the batch processing screen will result in candidates that look like they haven't processed even though I can put in a success message in the ClientCancelledException constructor.
Is it possible to to inherit from the Batch Processing Object such as
- Code: Select all
class SplitBatchProcess : JiwaFinancials.Jiwa.JiwaSales.BatchProcessing.BatchProcess
{
public override void Process()
{
}
}
and then override the Process to ignore client ClientCancelledException and then attach this new object to the Jiwa Batch processing form or is there another type of exception that can be thrown that will make Jiwa think everything processed correctly as this would be an easier solution?
Any help is appreciated.