Fixes issue 26574 Fixed the Payment Method filter in the Payment Report
authorRafa Roda Palacios <rafa.roda@ubiquads.com>
Mon, 16 Jun 2014 10:46:03 +0200
changeset 23492 e228a576ef80
parent 23491 6b17763435cf
child 23493 f0a8426c68e6
Fixes issue 26574 Fixed the Payment Method filter in the Payment Report
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	Mon Jun 16 20:24:09 2014 +0530
+++ b/modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java	Mon Jun 16 10:46:03 2014 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SL 
- * All portions are Copyright (C) 2009-2012 Openbravo SL 
+ * All portions are Copyright (C) 2009-2014 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -427,8 +427,8 @@
       if (!strPaymentMethodId.isEmpty()) {
         hsqlScript.append(" and coalesce(pay.");
         hsqlScript.append(FIN_Payment.PROPERTY_PAYMENTMETHOD);
-        hsqlScript.append(", inv.");
-        hsqlScript.append(Invoice.PROPERTY_PAYMENTMETHOD);
+        hsqlScript.append(", invps.");
+        hsqlScript.append(FIN_PaymentSchedule.PROPERTY_FINPAYMENTMETHOD);
         hsqlScript.append(") = '");
         hsqlScript.append(strPaymentMethodId);
         hsqlScript.append("'");