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;
}
Aggregations