revert refactor getMaterialWithMethodCosting for original getCostingMehods

Than a lot Low for your advice
This commit is contained in:
vpj-cd 2009-01-15 01:03:15 +00:00
parent 7209b5b9f2
commit 6f5bd0e5a1
3 changed files with 4 additions and 4 deletions

View File

@ -781,7 +781,7 @@ public class MCostDetail extends X_M_CostDetail
// Create Material Cost elements // Create Material Cost elements
if (getM_CostElement_ID() == 0) if (getM_CostElement_ID() == 0)
{ {
MCostElement[] ces = MCostElement.getMaterialWithCostingMethods(this); MCostElement[] ces = MCostElement.getCostingMethods(this);
for (int i = 0; i < ces.length; i++) for (int i = 0; i < ces.length; i++)
{ {
MCostElement ce = ces[i]; MCostElement ce = ces[i];
@ -1130,7 +1130,7 @@ public class MCostDetail extends X_M_CostDetail
// Create Material Cost elements // Create Material Cost elements
if (getM_CostElement_ID() == 0) if (getM_CostElement_ID() == 0)
{ {
MCostElement[] ces = MCostElement.getMaterialWithCostingMethods(this); MCostElement[] ces = MCostElement.getCostingMethods(this);
for (int i = 0; i < ces.length; i++) for (int i = 0; i < ces.length; i++)
{ {
MCostElement ce = ces[i]; MCostElement ce = ces[i];

View File

@ -205,7 +205,7 @@ public class MCostElement extends X_M_CostElement
* @param po parent * @param po parent
* @return cost element array * @return cost element array
*/ */
public static MCostElement[] getMaterialWithCostingMethods (PO po) public static MCostElement[] getCostingMethods (PO po)
{ {
ArrayList<MCostElement> list = new ArrayList<MCostElement>(); ArrayList<MCostElement> list = new ArrayList<MCostElement>();
String sql = "SELECT * FROM M_CostElement " String sql = "SELECT * FROM M_CostElement "

View File

@ -606,7 +606,7 @@ public class POSProductManager extends ProductManager
{ {
MClient client = new MClient(ctx, Env.getAD_Client_ID(ctx), null); 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++) for(int i = 0; i < costElements.length; i++)
{ {