use of com.axelor.apps.stock.db.LogisticalForm in project axelor-open-suite by axelor.
the class LogisticalFormController method setStockMoveDomain.
public void setStockMoveDomain(ActionRequest request, ActionResponse response) {
try {
LogisticalForm logisticalForm = request.getContext().asType(LogisticalForm.class);
String domain = Beans.get(LogisticalFormService.class).getStockMoveDomain(logisticalForm);
response.setAttr("$stockMove", "domain", domain);
if (logisticalForm.getDeliverToCustomerPartner() == null) {
response.setNotify(I18n.get("Deliver to customer is not set."));
}
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
use of com.axelor.apps.stock.db.LogisticalForm in project axelor-open-suite by axelor.
the class LogisticalFormController method refreshProductNetMass.
public void refreshProductNetMass(ActionRequest request, ActionResponse response) {
try {
LogisticalForm logisticalForm = request.getContext().asType(LogisticalForm.class);
LogisticalFormService logisticalFormService = Beans.get(LogisticalFormService.class);
logisticalFormService.updateProductNetMass(logisticalForm);
response.setValue("logisticalFormLineList", logisticalForm.getLogisticalFormLineList());
response.setValue("totalNetMass", logisticalForm.getTotalNetMass());
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations