use of com.axelor.apps.supplychain.db.MrpLineOrigin in project axelor-open-suite by axelor.
the class MrpLineServiceImpl method copyMrpLineOrigin.
public MrpLineOrigin copyMrpLineOrigin(MrpLineOrigin mrpLineOrigin) {
MrpLineOrigin copyMrpLineOrigin = new MrpLineOrigin();
copyMrpLineOrigin.setRelatedToSelect(mrpLineOrigin.getRelatedToSelect());
copyMrpLineOrigin.setRelatedToSelectId(mrpLineOrigin.getRelatedToSelectId());
return copyMrpLineOrigin;
}
use of com.axelor.apps.supplychain.db.MrpLineOrigin in project axelor-open-suite by axelor.
the class MrpLineServiceImpl method getPurchaseOrderOrigin.
protected String getPurchaseOrderOrigin(MrpLine mrpLine) {
String origin = "";
int count = 0;
for (MrpLineOrigin mrpLineOrigin : mrpLine.getMrpLineOriginList()) {
count++;
origin += getMrpLineOriginStr(mrpLineOrigin);
if (count < mrpLine.getMrpLineOriginList().size()) {
origin += " & ";
}
}
return origin;
}
use of com.axelor.apps.supplychain.db.MrpLineOrigin in project axelor-open-suite by axelor.
the class MrpLineServiceImpl method createMrpLineOrigin.
public MrpLineOrigin createMrpLineOrigin(Model model) {
Class<?> klass = EntityHelper.getEntityClass(model);
MrpLineOrigin mrpLineOrigin = new MrpLineOrigin();
mrpLineOrigin.setRelatedToSelect(klass.getCanonicalName());
mrpLineOrigin.setRelatedToSelectId(model.getId());
return mrpLineOrigin;
}
Aggregations