FR [ 2844074 ] Requisition PO Create - more selection fields

https://sourceforge.net/tracker/?func=detail&aid=2844074&group_id=176962&atid=879335

fix: Generate for all vendors if no bp group was specified
This commit is contained in:
teo_sarca 2009-08-25 07:36:04 +00:00
parent ae955b6ee9
commit 75de13578d
1 changed files with 5 additions and 1 deletions

View File

@ -481,7 +481,11 @@ public class RequisitionPOCreate extends SvrProcess
*/
private boolean isGenerateForVendor(int C_BPartner_ID)
{
if (p_C_BP_Group_ID <= 0 && m_excludedVendors.contains(C_BPartner_ID))
// No filter group was set => generate for all vendors
if (p_C_BP_Group_ID <= 0)
return true;
if (m_excludedVendors.contains(C_BPartner_ID))
return false;
//
boolean match = new Query(getCtx(), MBPartner.Table_Name, "C_BPartner_ID=? AND C_BP_Group_ID=?", get_TrxName())