Search in sources :

Example 1 with InvoiceGeneratorContract

use of com.axelor.apps.contract.generator.InvoiceGeneratorContract in project axelor-open-suite by axelor.

the class ContractServiceImpl method generateInvoice.

public Invoice generateInvoice(Contract contract) throws AxelorException {
    InvoiceGenerator invoiceGenerator = new InvoiceGeneratorContract(contract);
    Invoice invoice = invoiceGenerator.generate();
    return invoice;
}
Also used : Invoice(com.axelor.apps.account.db.Invoice) InvoiceGenerator(com.axelor.apps.account.service.invoice.generator.InvoiceGenerator) InvoiceGeneratorContract(com.axelor.apps.contract.generator.InvoiceGeneratorContract)

Aggregations

Invoice (com.axelor.apps.account.db.Invoice)1 InvoiceGenerator (com.axelor.apps.account.service.invoice.generator.InvoiceGenerator)1 InvoiceGeneratorContract (com.axelor.apps.contract.generator.InvoiceGeneratorContract)1