use of org.estatio.module.lease.seed.DocumentTypesAndTemplatesForLeaseFixture in project estatio by estatio.
the class DocumentTypesAndTemplatesSeedService method init.
@PostConstruct
public void init() {
if (System.getProperty("isis.headless") != null) {
return;
}
// If we get new versions of the templates in the future, then update this date
// the upsert logic here should result in the new templates being inserted alongside existing
// (with a different template date).
//
// using this date to ensure that prototyping still works (epoch date set back then)
//
final LocalDate templateDate = new LocalDate(2012, 1, 1);
fixtureScripts.runFixtureScript(new DocumentTypesAndTemplatesForLeaseFixture(templateDate), null);
fixtureScripts.runFixtureScript(new DocumentTypesAndTemplatesForCapexFixture(templateDate), null);
}
use of org.estatio.module.lease.seed.DocumentTypesAndTemplatesForLeaseFixture 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);
}
Aggregations