From 75de13578dba3326c42be3cf1b3583a2ef915e83 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Tue, 25 Aug 2009 07:36:04 +0000 Subject: [PATCH] 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 --- base/src/org/compiere/process/RequisitionPOCreate.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/process/RequisitionPOCreate.java b/base/src/org/compiere/process/RequisitionPOCreate.java index 34a2c8ed2e..384f0d82c5 100644 --- a/base/src/org/compiere/process/RequisitionPOCreate.java +++ b/base/src/org/compiere/process/RequisitionPOCreate.java @@ -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())