Search in sources :

Example 1 with CreateRetroInvoices

use of org.estatio.module.lease.migrations.CreateRetroInvoices in project estatio by estatio.

the class CreateRetroInvoices_IntegTest method setup.

@Before
public void setup() {
    createRetroInvoices = new CreateRetroInvoices() {

        {
            leaseRepository = CreateRetroInvoices_IntegTest.this.leaseRepository;
            invoiceForLeaseRepository = CreateRetroInvoices_IntegTest.this.invoiceForLeaseRepository;
            invoiceRepository = CreateRetroInvoices_IntegTest.this.invoiceRepository;
            propertyRepository = CreateRetroInvoices_IntegTest.this.propertyRepository;
            invoiceCalculationService = CreateRetroInvoices_IntegTest.this.invoiceCalculationService;
            factoryService = CreateRetroInvoices_IntegTest.this.factoryService;
        }
    };
    lease = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
}
Also used : CreateRetroInvoices(org.estatio.module.lease.migrations.CreateRetroInvoices) Before(org.junit.Before)

Example 2 with CreateRetroInvoices

use of org.estatio.module.lease.migrations.CreateRetroInvoices in project estatio by estatio.

the class EstatioFixtureScripts method createRetroInvoicesForProperty.

@Action(restrictTo = RestrictTo.PROTOTYPING)
@MemberOrder(sequence = "2")
public List<FixtureResult> createRetroInvoicesForProperty(final Property property, @ParameterLayout(named = "Start due date") final LocalDate startDueDate, @Parameter(optionality = Optionality.OPTIONAL) @ParameterLayout(named = "Nextdue date") final LocalDate nextDueDate) {
    final CreateRetroInvoices creator = container.newTransientInstance(CreateRetroInvoices.class);
    final FixtureScript.ExecutionContext executionContext = fixtureScripts.newExecutionContext(null);
    creator.createProperty(property, startDueDate, nextDueDate, executionContext);
    return executionContext.getResults();
}
Also used : CreateRetroInvoices(org.estatio.module.lease.migrations.CreateRetroInvoices) FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Action(org.apache.isis.applib.annotation.Action) MemberOrder(org.apache.isis.applib.annotation.MemberOrder)

Example 3 with CreateRetroInvoices

use of org.estatio.module.lease.migrations.CreateRetroInvoices in project estatio by estatio.

the class EstatioFixtureScripts method createRetroInvoicesForLease.

@Action(restrictTo = RestrictTo.PROTOTYPING)
@ActionLayout(cssClassFa = "fa-bolt")
@MemberOrder(sequence = "3")
public List<FixtureResult> createRetroInvoicesForLease(final Lease lease, @ParameterLayout(named = "Start due date") final LocalDate startDueDate, @ParameterLayout(named = "Nextdue date") final LocalDate nextDueDate) {
    final CreateRetroInvoices creator = container.newTransientInstance(CreateRetroInvoices.class);
    final FixtureScript.ExecutionContext executionContext = fixtureScripts.newExecutionContext(null);
    creator.createLease(lease, startDueDate, nextDueDate, executionContext);
    return executionContext.getResults();
}
Also used : CreateRetroInvoices(org.estatio.module.lease.migrations.CreateRetroInvoices) FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Action(org.apache.isis.applib.annotation.Action) MemberOrder(org.apache.isis.applib.annotation.MemberOrder) ActionLayout(org.apache.isis.applib.annotation.ActionLayout)

Aggregations

CreateRetroInvoices (org.estatio.module.lease.migrations.CreateRetroInvoices)3 Action (org.apache.isis.applib.annotation.Action)2 MemberOrder (org.apache.isis.applib.annotation.MemberOrder)2 FixtureScript (org.apache.isis.applib.fixturescripts.FixtureScript)2 ActionLayout (org.apache.isis.applib.annotation.ActionLayout)1 Before (org.junit.Before)1