FR: [ 2214883 ] Remove SQL code and Replace for Query

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
vpj-cd 2010-03-07 19:41:38 +00:00
parent 30225c49c9
commit 370a752666
1 changed files with 7 additions and 5 deletions

View File

@ -31,6 +31,8 @@ import org.compiere.util.Env;
*/ */
public class MCommissionRun extends X_C_CommissionRun public class MCommissionRun extends X_C_CommissionRun
{ {
/** /**
* *
*/ */
@ -83,7 +85,7 @@ public class MCommissionRun extends X_C_CommissionRun
*/ */
public MCommissionAmt[] getAmts() public MCommissionAmt[] getAmts()
{ {
final String whereClause = I_C_CommissionRun.COLUMNNAME_C_CommissionRun_ID+"=?"; final String whereClause = I_C_CommissionAmt.COLUMNNAME_C_CommissionRun_ID+"=?";
List<MCommissionAmt> list = new Query(getCtx(),I_C_CommissionAmt.Table_Name,whereClause,get_TrxName()) List<MCommissionAmt> list = new Query(getCtx(),I_C_CommissionAmt.Table_Name,whereClause,get_TrxName())
.setParameters(getC_CommissionRun_ID()) .setParameters(getC_CommissionRun_ID())
.list(); .list();