IDEMPIERE-6034 MTaxCategory.getDefaultTax unnecessary create new MTax instance (#2234)
This commit is contained in:
parent
91d757cf81
commit
9eb83bfe31
|
@ -85,7 +85,7 @@ public class MTaxCategory extends X_C_TaxCategory
|
||||||
*/
|
*/
|
||||||
public MTax getDefaultTax()
|
public MTax getDefaultTax()
|
||||||
{
|
{
|
||||||
MTax m_tax = new MTax(getCtx(), 0, get_TrxName());
|
MTax m_tax = null;
|
||||||
|
|
||||||
final String whereClause = COLUMNNAME_C_TaxCategory_ID+"=? AND "+ COLUMNNAME_IsDefault+"='Y'";
|
final String whereClause = COLUMNNAME_C_TaxCategory_ID+"=? AND "+ COLUMNNAME_IsDefault+"='Y'";
|
||||||
List<MTax> list = new Query(getCtx(), I_C_Tax.Table_Name, whereClause, get_TrxName())
|
List<MTax> list = new Query(getCtx(), I_C_Tax.Table_Name, whereClause, get_TrxName())
|
||||||
|
|
Loading…
Reference in New Issue