use of com.axelor.apps.stock.service.StockMoveService in project axelor-open-suite by axelor.
the class StockMoveController method updateStocks.
/**
* Called from stock move form view on save. Call {@link
* StockMoveService#updateStocks(StockMove)}.
*
* @param request
* @param response
*/
public void updateStocks(ActionRequest request, ActionResponse response) {
try {
StockMove stockMove = request.getContext().asType(StockMove.class);
Beans.get(StockMoveService.class).updateStocks(Beans.get(StockMoveRepository.class).find(stockMove.getId()));
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations