diff --git a/base/src/org/compiere/model/MCostDetail.java b/base/src/org/compiere/model/MCostDetail.java index c54f75228a..81483669ea 100644 --- a/base/src/org/compiere/model/MCostDetail.java +++ b/base/src/org/compiere/model/MCostDetail.java @@ -781,7 +781,7 @@ public class MCostDetail extends X_M_CostDetail // Create Material Cost elements if (getM_CostElement_ID() == 0) { - MCostElement[] ces = MCostElement.getMaterialWithCostingMethods(this); + MCostElement[] ces = MCostElement.getCostingMethods(this); for (int i = 0; i < ces.length; i++) { MCostElement ce = ces[i]; @@ -1130,7 +1130,7 @@ public class MCostDetail extends X_M_CostDetail // Create Material Cost elements if (getM_CostElement_ID() == 0) { - MCostElement[] ces = MCostElement.getMaterialWithCostingMethods(this); + MCostElement[] ces = MCostElement.getCostingMethods(this); for (int i = 0; i < ces.length; i++) { MCostElement ce = ces[i]; diff --git a/base/src/org/compiere/model/MCostElement.java b/base/src/org/compiere/model/MCostElement.java index a5f5a6fe0c..2972020856 100644 --- a/base/src/org/compiere/model/MCostElement.java +++ b/base/src/org/compiere/model/MCostElement.java @@ -205,7 +205,7 @@ public class MCostElement extends X_M_CostElement * @param po parent * @return cost element array */ - public static MCostElement[] getMaterialWithCostingMethods (PO po) + public static MCostElement[] getCostingMethods (PO po) { ArrayList list = new ArrayList(); String sql = "SELECT * FROM M_CostElement " diff --git a/posterita/posterita/src/main/org/posterita/businesslogic/POSProductManager.java b/posterita/posterita/src/main/org/posterita/businesslogic/POSProductManager.java index a969126ffd..05565e9285 100644 --- a/posterita/posterita/src/main/org/posterita/businesslogic/POSProductManager.java +++ b/posterita/posterita/src/main/org/posterita/businesslogic/POSProductManager.java @@ -606,7 +606,7 @@ public class POSProductManager extends ProductManager { MClient client = new MClient(ctx, Env.getAD_Client_ID(ctx), null); - MCostElement costElements[] = MCostElement.getMaterialWithCostingMethods(client); + MCostElement costElements[] = MCostElement.getCostingMethods(client); for(int i = 0; i < costElements.length; i++) {