Search in sources :

Example 1 with MrpLineOrigin

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;
}
Also used : MrpLineOrigin(com.axelor.apps.supplychain.db.MrpLineOrigin)

Example 2 with MrpLineOrigin

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;
}
Also used : MrpLineOrigin(com.axelor.apps.supplychain.db.MrpLineOrigin)

Example 3 with MrpLineOrigin

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;
}
Also used : MrpLineOrigin(com.axelor.apps.supplychain.db.MrpLineOrigin)

Aggregations

MrpLineOrigin (com.axelor.apps.supplychain.db.MrpLineOrigin)3