use of com.axelor.apps.stock.exception.LogisticalFormWarning in project axelor-open-suite by axelor.
the class LogisticalFormController method checkLines.
public void checkLines(ActionRequest request, ActionResponse response) {
try {
LogisticalForm logisticalForm = request.getContext().asType(LogisticalForm.class);
LogisticalFormService logisticalFormService = Beans.get(LogisticalFormService.class);
logisticalFormService.sortLines(logisticalForm);
logisticalFormService.checkLines(logisticalForm);
} catch (LogisticalFormWarning e) {
response.setAlert(e.getLocalizedMessage());
} catch (LogisticalFormError e) {
response.setError(e.getLocalizedMessage());
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations