Search in sources :

Example 1 with EstatioTaxModule

use of org.estatio.module.tax.EstatioTaxModule in project estatio by estatio.

the class EstatioDemoFixture method doExecute.

private void doExecute(final ExecutionContext ec) {
    ec.executeChild(this, new AbstractUserAndRolesFixtureScript("initialisation", "pass", // email address
    null, Global.getPath(), AccountType.LOCAL, Lists.newArrayList("estatio-admin")) {
    });
    Stream.of(new CountryModule(), new EstatioCurrencyModule(), new EstatioTaxModule(), new EstatioChargeModule(), new EstatioIndexModule()).map(ModuleAbstract::getRefDataSetupFixture).filter(Objects::nonNull).forEach(fixtureScript -> ec.executeChild(this, fixtureScript));
    ec.executeChildren(this, DocFragment_demo_enum.InvoicePreliminaryLetterDescription_DemoGbr, DocFragment_demo_enum.InvoicePreliminaryLetterDescription_DemoNld, DocFragment_demo_enum.InvoiceDescription_DemoGbr, DocFragment_demo_enum.InvoiceDescription_DemoNld, DocFragment_demo_enum.InvoiceItemDescription_DemoGbr, DocFragment_demo_enum.InvoiceItemDescription_DemoNld);
    ec.executeChildren(this, DocFragment_enum.InvoiceDescriptionFra, DocFragment_enum.InvoiceDescriptionIta, DocFragment_enum.InvoiceItemDescriptionFra, DocFragment_enum.InvoiceItemDescriptionIta, DocFragment_enum.InvoicePreliminaryLetterDescriptionFra, DocFragment_enum.InvoicePreliminaryLetterDescriptionIta);
    ec.executeChildren(this, Person_enum.LinusTorvaldsNl, Person_enum.GinoVannelliGb, Person_enum.DylanOfficeAdministratorGb, Person_enum.JonathanPropertyManagerGb, Person_enum.FaithConwayGb, Person_enum.OscarCountryDirectorGb, Person_enum.EmmaTreasurerGb, Person_enum.ThibaultOfficerAdministratorFr, Person_enum.FifineLacroixFr, Person_enum.OlivePropertyManagerFr, Person_enum.RosaireEvrardFr, Person_enum.GabrielHerveFr, Person_enum.BrunoTreasurerFr);
    ec.executeChildren(this, PropertyAndUnitsAndOwnerAndManager_enum.GraIt, PropertyAndUnitsAndOwnerAndManager_enum.VivFr, PropertyAndUnitsAndOwnerAndManager_enum.HanSe, PropertyAndUnitsAndOwnerAndManager_enum.MnsFr, PropertyAndUnitsAndOwnerAndManager_enum.MacFr, PropertyAndUnitsAndOwnerAndManager_enum.CARTEST);
    ec.executeChildren(this, NumeratorForOrganisation_enum.Fra);
    ec.executeChildren(this, BankAccount_enum.AcmeNl, BankAccount_enum.HelloWorldGb, BankAccount_enum.TopModelGb, BankAccount_enum.TopSellerGb, BankAccount_enum.MediaXGb, BankAccount_enum.PretGb, BankAccount_enum.MiracleGb, BankAccount_enum.HelloWorldNl, BankAccountFaFa_enum.AcmeNl);
    ec.executeChildren(this, BankAccountFaFa_enum.HelloWorldNl, BankAccountFaFa_enum.HelloWorldGb);
    ec.executeChildren(this, BankMandate_enum.OxfTopModel001Gb_1, BankMandate_enum.KalPoison001Nl_2);
    ec.executeChildren(this, Guarantee_enum.OxfTopModel001Gb);
    ec.executeChildren(this, Lease_enum.OxfMediaX002Gb, Lease_enum.OxfPret004Gb, Lease_enum.OxfMiracl005Gb, Lease_enum.KalPoison001Nl, Lease_enum.OxfTopModel001Gb);
    ec.executeChildren(this, BreakOption_enum.OxfPoison003Gb_FIXED, BreakOption_enum.OxfPoison003Gb_ROLLING, BreakOption_enum.OxfPoison003Gb_FIXED, BreakOption_enum.OxfPoison003Gb_ROLLING, BreakOption_enum.OxfTopModel001Gb_FIXED, BreakOption_enum.OxfTopModel001Gb_ROLLING);
    ec.executeChildren(this, LeaseItemForRent_enum.OxfMiracl005Gb, LeaseItemForServiceCharge_enum.OxfMiracl005Gb, LeaseItemForTurnoverRent_enum.OxfMiracl005Gb, LeaseItemForDiscount_enum.OxfMiracle005bGb, LeaseItemForDeposit_enum.OxfMiracle005bGb, LeaseItemForRent_enum.KalPoison001Nl, LeaseItemForRent_enum.OxfTopModel001Gb, LeaseItemForServiceCharge_enum.OxfTopModel001Gb, LeaseItemForTurnoverRent_enum.OxfTopModel001Gb, LeaseItemForDiscount_enum.OxfTopModel001Gb, LeaseItemForDeposit_enum.OxfTopModel001Gb, LeaseItemForTax_enum.OxfTopModel001Gb, LeaseItemForMarketing_enum.OxfTopModel001Gb);
    ec.executeChildren(this, InvoiceForLease_enum.OxfPoison003Gb, InvoiceForLease_enum.KalPoison001Nl, InvoiceForLease_enum.OxfMiracl005Gb);
    ec.executeChildren(this, Project_enum.KalProject1, Project_enum.KalProject2, Project_enum.GraProject);
    ec.executeChildren(this, Budget_enum.OxfBudget2015, Budget_enum.OxfBudget2016);
    ec.executeChildren(this, KeyTable_enum.Oxf2015Area, KeyTable_enum.Oxf2015Count);
    ec.executeChildren(this, Partitioning_enum.OxfPartitioning2015);
    ec.executeChild(this, new CapexChargeHierarchyXlsxFixture());
    ec.executeChild(this, new OrderInvoiceImportForDemoXlsxFixture());
    ec.executeChildren(this, new DocumentTypesAndTemplatesForCapexFixture(), new DocumentTypesAndTemplatesForLeaseFixture());
    ec.executeChildren(this, IncomingPdf_enum.FakeOrder1.builder().setRunAs("estatio-user-fr"), IncomingPdf_enum.FakeInvoice1.builder().setRunAs("estatio-user-fr"));
    ec.executeChildren(this, Order_enum.fakeOrder2Pdf, IncomingInvoice_enum.fakeInvoice2Pdf, IncomingInvoice_enum.fakeInvoice3Pdf);
}
Also used : ModuleAbstract(org.apache.isis.applib.ModuleAbstract) CountryModule(org.incode.module.country.CountryModule) EstatioTaxModule(org.estatio.module.tax.EstatioTaxModule) EstatioChargeModule(org.estatio.module.charge.EstatioChargeModule) AbstractUserAndRolesFixtureScript(org.isisaddons.module.security.seed.scripts.AbstractUserAndRolesFixtureScript) DocumentTypesAndTemplatesForCapexFixture(org.estatio.module.capex.seed.DocumentTypesAndTemplatesForCapexFixture) EstatioIndexModule(org.estatio.module.index.EstatioIndexModule) DocumentTypesAndTemplatesForLeaseFixture(org.estatio.module.lease.seed.DocumentTypesAndTemplatesForLeaseFixture) EstatioCurrencyModule(org.estatio.module.currency.EstatioCurrencyModule) OrderInvoiceImportForDemoXlsxFixture(org.estatio.module.capex.fixtures.orderinvoice.OrderInvoiceImportForDemoXlsxFixture) CapexChargeHierarchyXlsxFixture(org.estatio.module.charge.fixtures.incoming.builders.CapexChargeHierarchyXlsxFixture)

Aggregations

ModuleAbstract (org.apache.isis.applib.ModuleAbstract)1 OrderInvoiceImportForDemoXlsxFixture (org.estatio.module.capex.fixtures.orderinvoice.OrderInvoiceImportForDemoXlsxFixture)1 DocumentTypesAndTemplatesForCapexFixture (org.estatio.module.capex.seed.DocumentTypesAndTemplatesForCapexFixture)1 EstatioChargeModule (org.estatio.module.charge.EstatioChargeModule)1 CapexChargeHierarchyXlsxFixture (org.estatio.module.charge.fixtures.incoming.builders.CapexChargeHierarchyXlsxFixture)1 EstatioCurrencyModule (org.estatio.module.currency.EstatioCurrencyModule)1 EstatioIndexModule (org.estatio.module.index.EstatioIndexModule)1 DocumentTypesAndTemplatesForLeaseFixture (org.estatio.module.lease.seed.DocumentTypesAndTemplatesForLeaseFixture)1 EstatioTaxModule (org.estatio.module.tax.EstatioTaxModule)1 CountryModule (org.incode.module.country.CountryModule)1 AbstractUserAndRolesFixtureScript (org.isisaddons.module.security.seed.scripts.AbstractUserAndRolesFixtureScript)1