Search in sources :

Example 1 with SaleBatch

use of com.axelor.apps.sale.db.SaleBatch in project axelor-open-suite by axelor.

the class SaleBatchController method actionInvoicing.

public void actionInvoicing(ActionRequest request, ActionResponse response) throws AxelorException {
    SaleBatch saleBatch = request.getContext().asType(SaleBatch.class);
    saleBatch = Beans.get(SaleBatchRepository.class).find(saleBatch.getId());
    Batch batch = Beans.get(BatchInvoicing.class).run(saleBatch);
    response.setFlash(batch.getComments());
    response.setReload(true);
}
Also used : SaleBatch(com.axelor.apps.sale.db.SaleBatch) Batch(com.axelor.apps.base.db.Batch) BatchInvoicing(com.axelor.apps.supplychain.service.batch.BatchInvoicing) SaleBatch(com.axelor.apps.sale.db.SaleBatch)

Example 2 with SaleBatch

use of com.axelor.apps.sale.db.SaleBatch in project axelor-open-suite by axelor.

the class SaleBatchSaleRepository method copy.

@Override
public SaleBatch copy(SaleBatch entity, boolean deep) {
    SaleBatch copy = super.copy(entity, deep);
    copy.setBatchList(null);
    return copy;
}
Also used : SaleBatch(com.axelor.apps.sale.db.SaleBatch)

Aggregations

SaleBatch (com.axelor.apps.sale.db.SaleBatch)2 Batch (com.axelor.apps.base.db.Batch)1 BatchInvoicing (com.axelor.apps.supplychain.service.batch.BatchInvoicing)1