Search in sources :

Example 1 with OrderInvoiceSheet

use of org.estatio.module.capex.imports.OrderInvoiceSheet in project estatio by estatio.

the class OrderInvoiceImportMenu method importOrdersAndInvoices.

@Action(semantics = SemanticsOf.SAFE)
@MemberOrder(sequence = "1")
public OrderInvoiceSheet importOrdersAndInvoices(final String sheetName, final Blob spreadSheet) {
    final List<OrderInvoiceLine> lines = orderInvoiceImportService.createLines(sheetName, spreadSheet);
    final OrderInvoiceSheet sheet = factoryService.instantiate(OrderInvoiceSheet.class);
    sheet.setLines(lines);
    return sheet;
}
Also used : OrderInvoiceSheet(org.estatio.module.capex.imports.OrderInvoiceSheet) OrderInvoiceLine(org.estatio.module.capex.imports.OrderInvoiceLine) Action(org.apache.isis.applib.annotation.Action) MemberOrder(org.apache.isis.applib.annotation.MemberOrder)

Aggregations

Action (org.apache.isis.applib.annotation.Action)1 MemberOrder (org.apache.isis.applib.annotation.MemberOrder)1 OrderInvoiceLine (org.estatio.module.capex.imports.OrderInvoiceLine)1 OrderInvoiceSheet (org.estatio.module.capex.imports.OrderInvoiceSheet)1