Fixes issue showing empty bussines partners when excluded
authorDavid Miguelez <david.miguelez@openbravo.com>
Wed, 15 Feb 2012 19:10:02 +0100
changeset 15512 41eecb6a3b4f
parent 15511 336d6a7f739e
child 15513 5bef43263107
Fixes issue showing empty bussines partners when excluded
modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
--- a/modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java	Wed Feb 15 17:56:28 2012 +0100
+++ b/modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java	Wed Feb 15 19:10:02 2012 +0100
@@ -1456,7 +1456,7 @@
               + BusinessPartner.PROPERTY_BUSINESSPARTNERCATEGORY, strcBPGroupIdIN));
         }
 
-        if (!bPartners.isEmpty() && strcBPGroupIdIN.equals("")) {
+        if (bPartners.isEmpty() && strcBPGroupIdIN.equals("")) {
           obCriteriaTrans.add(Restrictions
               .isNotNull(FIN_FinaccTransaction.PROPERTY_BUSINESSPARTNER));
         }