Multi Company Sample - PO

Posted:
Thu Apr 30, 2020 11:08 am
by Riyaz
Hi There
The jiwa plugin "Multi Company Sample - PO" has compatibility issues for v7.2.1 and one of clients had been using this plugin and its breaking operations for them now.
I tried to fixed the plugin compatibility and it compiles with the below code, but I get the attached error, can you pls advise.
Re: Multi Company Sample - PO

Posted:
Thu Apr 30, 2020 12:51 pm
by Mike.Sheen
Hi Ryaz,
I've logged issue
DEV-8208 to update our standard plugin as part of the next upgrade.
You should be able to get the plugin before the next release - we'll attach the plugin to the issue when done.
Mike
Re: Multi Company Sample - PO

Posted:
Thu Apr 30, 2020 12:58 pm
by Riyaz
Hi Mike
Thanks for your reply, couple of things
1/ I couldnt setup an account on JIRA as it says too many users, so I can watch this issue
2/ Can I clone this plugin to a custom one for the time being, so that the client is happy for the time being? If so kindly advise on what I'm doing wrong
Re: Multi Company Sample - PO

Posted:
Thu Apr 30, 2020 5:14 pm
by SBarnes
This should give you the information you need
https://docs.jiwa.com.au/display/J7UG/H ... 0+or+later, basically you need to change where the manger gets changed to create a new manager and logon to the other database like this and then use that manager to create you objects and do the work. the following shows a logon and creating the sales order object.
- Code: Select all
var manager = new JiwaFinancials.Jiwa.JiwaApplication.Manager();
manager.Logon("MyServer", "JiwaDemo", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", password);
manager.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder>(null);