by Mike.Sheen » Mon Sep 12, 2016 7:50 pm
Hi Riyaz,
You can simply add the business logic to the tab of the plugin (add "Sales Order Entry"), then your plugin will work.
However, as you're wanting to show a dialog, you shouldn't be using the BusinessLogicPlugin class to hook the business logic - it might be invoked from a service, so you don't want to ask for user interaction.
Instead, add your handler in the Setup method of the FormPlugin class - it'll invoke when the sales order is processed, but only from the sales order form - not another invocation such as a service. Attached is a modified version of your plugin showing this.
Mike
- Attachments
-
Plugin Export 2 CSV - V2.xml
- Modified plugin
- (36.48 KiB) Downloaded 309 times
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution