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