IDEMPIERE-4004 Get CBPartner by TaxID
This commit is contained in:
parent
a121eae24b
commit
5d8244f757
|
|
@ -135,6 +135,22 @@ public class MBPartner extends X_C_BPartner
|
||||||
.firstOnly();
|
.firstOnly();
|
||||||
return retValue;
|
return retValue;
|
||||||
} // get
|
} // get
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get BPartner with taxID in a transaction
|
||||||
|
* @param ctx context
|
||||||
|
* @param taxID taxID
|
||||||
|
* @param trxName transaction
|
||||||
|
* @return BPartner or null
|
||||||
|
*/
|
||||||
|
public static MBPartner getFirstWithTaxID (Properties ctx, String taxID, String trxName)
|
||||||
|
{
|
||||||
|
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();
|
||||||
|
return retValue;
|
||||||
|
} // get
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get BPartner with Value
|
* Get BPartner with Value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue