Esempio n. 1
0
 @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();
 }
Esempio n. 2
0
 @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();
 }