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:
parent
ae955b6ee9
commit
75de13578d
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue