revert refactor getMaterialWithMethodCosting for original getCostingMehods
Than a lot Low for your advice
This commit is contained in:
parent
7209b5b9f2
commit
6f5bd0e5a1
|
@ -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];
|
||||
|
|
|
@ -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<MCostElement> list = new ArrayList<MCostElement>();
|
||||
String sql = "SELECT * FROM M_CostElement "
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue