Following Carlos Ruiz advice on maintaining old methods as removed in revision 11673

JUnit test to follow.
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
Redhuan D. Oon 2010-03-17 08:24:25 +00:00
parent 87a11d1c62
commit 482a81f3f6
1 changed files with 7 additions and 3 deletions

View File

@ -102,7 +102,7 @@ public class MPriceListVersion extends X_M_PriceList_Version
{ {
if (m_pp != null && !refresh) if (m_pp != null && !refresh)
return m_pp; return m_pp;
m_pp = getProductPrice(); m_pp = getProductPrice(null);
return m_pp; return m_pp;
} // getProductPrice } // getProductPrice
@ -110,9 +110,13 @@ public class MPriceListVersion extends X_M_PriceList_Version
* Get Product Price * Get Product Price
* @return product price * @return product price
*/ */
public MProductPrice[] getProductPrice () public MProductPrice[] getProductPrice (String passedClause)
{ {
final String whereClause = I_M_ProductPrice.COLUMNNAME_M_PriceList_Version_ID+"=?"; if (passedClause != null)
passedClause=" AND "+passedClause;
else
passedClause="";
final String whereClause = I_M_ProductPrice.COLUMNNAME_M_PriceList_Version_ID+"=?"+passedClause;
List<MProductPrice> list = new Query(getCtx(),I_M_ProductPrice.Table_Name,whereClause,get_TrxName()) List<MProductPrice> list = new Query(getCtx(),I_M_ProductPrice.Table_Name,whereClause,get_TrxName())
.setParameters(getM_PriceList_Version_ID()) .setParameters(getM_PriceList_Version_ID())
.list(); .list();