IDEMPIERE-6034 MTaxCategory.getDefaultTax unnecessary create new MTax instance (#2234)

This commit is contained in:
hengsin 2024-02-08 02:46:11 +08:00 committed by Carlos Ruiz
parent 91d757cf81
commit 9eb83bfe31
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class MTaxCategory extends X_C_TaxCategory
*/
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'";
List<MTax> list = new Query(getCtx(), I_C_Tax.Table_Name, whereClause, get_TrxName())