Page 1 of 1

Debtor system creation

PostPosted: Thu Sep 05, 2019 5:10 pm
by Riyaz
Hi There

Do we have an example on how to create a debtor system via plugin?

Re: Debtor system creation  Topic is solved

PostPosted: Mon Sep 16, 2019 11:26 am
by Mike.Sheen
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.