Debtor system creation  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Debtor system creation

Postby Riyaz » Thu Sep 05, 2019 5:10 pm

Hi There

Do we have an example on how to create a debtor system via plugin?
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Debtor system creation  Topic is solved

Postby Mike.Sheen » Mon Sep 16, 2019 11:26 am

None that I know of - but it's not any different to any other business logic inheriting from JiwaApplication.BusinessLogic.Maintenance (Sales orders, quotes, inventory maintenance, debtor maintenance and so on)

The class you want is JiwaDebtors.Configuration.DebtorSystemsTemplate.DebtorSystemTemplate.

Create a new instance of that using the BusinessLogicFactory:

Code: Select all
Manager.BusinessLogicFactory.CreateBusinessLogic<JiwaDebtors.Configuration.DebtorSystemsTemplate.DebtorSystemTemplate>(null);


Then invoke the CreateNew() method.

Set properties you want, then invoke the Save() method.
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
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests