Page 1 of 1

Print sales order when XML imported

PostPosted: Tue Sep 17, 2024 12:50 pm
by DannyC
I have a plugin which uses the Plugin Scheduler Service to watch a folder for new files to import.

In this case, the client wants to automatically print a picking sheet when the XML file gets imported.

I developed the attached plugin which worked OK in my dev and in their test Jiwa database. But when I deploy to live, doesn't fire the business logic code I've written.
I've even brough their live DB over into my system & tested here & it still doesn't work. I just can't fathom why the business logic code isn't running.

Would be grateful for some hints.

Re: Print sales order when XML imported

PostPosted: Tue Sep 17, 2024 1:41 pm
by SBarnes
Is it deployed under the same conditions as where you developed it, in other words is this possibly being caused by another plugin in the customers system.

Re: Print sales order when XML imported  Topic is solved

PostPosted: Tue Sep 17, 2024 3:16 pm
by Scott.Pearce
There is no Business Logic reference (see the "Business Logic" tab of the plugin), therefore the code runs for no business logic object. You need to add a reference to "Sales order Entry" on the "Business Logic" tab.

Re: Print sales order when XML imported

PostPosted: Tue Sep 17, 2024 4:19 pm
by DannyC
Scott.Pearce wrote:There is no Business Logic reference (see the "Business Logic" tab of the plugin), therefore the code runs for no business logic object. You need to add a reference to "Sales order Entry" on the "Business Logic" tab.


Flipping heck, I'm a duffer. I've done these plugins so many times its the obvious simple things that are often overlooked.

Thanks Scott, just needed another pair of eyes :geek: