IDEMPIERE-4004 Get CBPartner by TaxID / peer review

This commit is contained in:
Carlos Ruiz 2019-08-01 19:47:34 +02:00
parent 5d8244f757
commit bd33b7ab64
1 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class MBPartner extends X_C_BPartner
/**
*
*/
private static final long serialVersionUID = -3098526308112073395L;
private static final long serialVersionUID = -255154524310324997L;
/**
* Get Empty Template Business Partner
@ -148,9 +148,10 @@ public class MBPartner extends X_C_BPartner
final String whereClause = "TaxID=? AND AD_Client_ID=?";
MBPartner retValue = new Query(ctx, Table_Name, whereClause, trxName)
.setParameters(taxID, Env.getAD_Client_ID(ctx))
.firstOnly();
.setOrderBy(COLUMNNAME_C_BPartner_ID)
.first();
return retValue;
} // get
} // getFirstWithTaxID
/**
* Get BPartner with Value