fix small bug is necessary transaction name
This commit is contained in:
parent
48f77c0b7b
commit
b2ba1bdc1a
|
@ -1267,8 +1267,15 @@ public class MCost extends X_M_Cost
|
||||||
+ " AND M_AttributeSetInstance_ID=?"
|
+ " AND M_AttributeSetInstance_ID=?"
|
||||||
+ " AND M_CostType_ID=? AND C_AcctSchema_ID=?"
|
+ " AND M_CostType_ID=? AND C_AcctSchema_ID=?"
|
||||||
+ " AND M_CostElement_ID=?";
|
+ " AND M_CostElement_ID=?";
|
||||||
cost = new Query(product.getCtx(), MCost.Table_Name, whereClause, null)
|
cost = new Query(product.getCtx(), MCost.Table_Name, whereClause, product.get_TrxName())
|
||||||
.setParameters(new Object[]{product.getAD_Client_ID(), AD_Org_ID, product.getM_Product_ID(), M_AttributeSetInstance_ID, as.getM_CostType_ID(), as.getC_AcctSchema_ID(), M_CostElement_ID})
|
.setParameters(new Object[]{
|
||||||
|
product.getAD_Client_ID(),
|
||||||
|
AD_Org_ID,
|
||||||
|
product.getM_Product_ID(),
|
||||||
|
M_AttributeSetInstance_ID,
|
||||||
|
as.getM_CostType_ID(),
|
||||||
|
as.getC_AcctSchema_ID(),
|
||||||
|
M_CostElement_ID})
|
||||||
.first();
|
.first();
|
||||||
//FR: [ 2214883 ] - end -
|
//FR: [ 2214883 ] - end -
|
||||||
// New
|
// New
|
||||||
|
@ -1300,7 +1307,14 @@ public class MCost extends X_M_Cost
|
||||||
+ " AND M_CostType_ID=? AND C_AcctSchema_ID=? AND M_CostElement_ID=?"
|
+ " AND M_CostType_ID=? AND C_AcctSchema_ID=? AND M_CostElement_ID=?"
|
||||||
+ " AND M_AttributeSetInstance_ID=?";
|
+ " AND M_AttributeSetInstance_ID=?";
|
||||||
retValue = new Query(ctx, MCost.Table_Name, whereClause, null)
|
retValue = new Query(ctx, MCost.Table_Name, whereClause, null)
|
||||||
.setParameters(new Object[]{AD_Client_ID, AD_Org_ID, M_Product_ID, M_CostType_ID, C_AcctSchema_ID, M_CostElement_ID, M_AttributeSetInstance_ID})
|
.setParameters(new Object[]{
|
||||||
|
AD_Client_ID,
|
||||||
|
AD_Org_ID,
|
||||||
|
M_Product_ID,
|
||||||
|
M_CostType_ID,
|
||||||
|
C_AcctSchema_ID,
|
||||||
|
M_CostElement_ID,
|
||||||
|
M_AttributeSetInstance_ID})
|
||||||
.first();
|
.first();
|
||||||
return retValue;
|
return retValue;
|
||||||
} // get
|
} // get
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class MLot extends X_M_Lot
|
||||||
{
|
{
|
||||||
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
|
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
|
||||||
String whereClause = "M_Product_ID=?";
|
String whereClause = "M_Product_ID=?";
|
||||||
List <MLot> list = new Query(ctx, MLot.Table_Name, whereClause, null)
|
List <MLot> list = new Query(ctx, MLot.Table_Name, whereClause, trxName)
|
||||||
.setParameters(new Object[]{M_Product_ID})
|
.setParameters(new Object[]{M_Product_ID})
|
||||||
.list();
|
.list();
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue