details:   https://code.openbravo.com/erp/devel/pi/rev/39d995c11fff
changeset: 15505:39d995c11fff
user:      David Miguelez <david.miguelez <at> openbravo.com>
date:      Thu Feb 16 13:12:41 2012 +0100
summary:   Related to issue 0019785: Fixes API change.

diffstat:

 
modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
 |  30 ++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diffs (47 lines):

diff -r 60dc2b18fc07 -r 39d995c11fff 
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
        Thu Feb 16 12:40:02 2012 +0100
+++ 
b/modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
        Thu Feb 16 13:12:41 2012 +0100
@@ -94,6 +94,7 @@
       String strPaymentMethodId, String strFinancialAccountId, String 
strcCurrency,
       String strConvertCurrency, String strConversionDate, String strPaymType, 
String strOverdue,
       String strGroupCrit, String strOrdCrit) {
+
     try {
       return getPaymentReport(vars, strOrg, strInclSubOrg, strDueDateFrom, 
strDueDateTo,
           strAmountFrom, strAmountTo, strDocumentDateFrom, strDocumentDateTo, 
strcBPartnerIdIN,
@@ -118,6 +119,35 @@
   public FieldProvider[] getPaymentReport(VariablesSecureApp vars, String 
strOrg,
       String strInclSubOrg, String strDueDateFrom, String strDueDateTo, String 
strAmountFrom,
       String strAmountTo, String strDocumentDateFrom, String strDocumentDateTo,
+      String strcBPartnerIdIN, String strcBPGroupIdIN, String strcProjectIdIN, 
String strfinPaymSt,
+      String strPaymentMethodId, String strFinancialAccountId, String 
strcCurrency,
+      String strConvertCurrency, String strConversionDate, String strPaymType, 
String strOverdue,
+      String strGroupCrit, String strOrdCrit, String 
strInclPaymentUsingCredit) {
+
+    try {
+      return getPaymentReport(vars, strOrg, strInclSubOrg, strDueDateFrom, 
strDueDateTo,
+          strAmountFrom, strAmountTo, strDocumentDateFrom, strDocumentDateTo, 
strcBPartnerIdIN,
+          strcBPGroupIdIN, "include", strcProjectIdIN, strfinPaymSt, 
strPaymentMethodId,
+          strFinancialAccountId, strcCurrency, strConvertCurrency, 
strConversionDate, strPaymType,
+          strOverdue, strGroupCrit, strOrdCrit, strInclPaymentUsingCredit, "", 
"");
+    } catch (OBException e) {
+      FieldProvider[] fp = new FieldProvider[1];
+      HashMap<String, String> hm = new HashMap<String, String>();
+      hm.put("transCurrency", strcCurrency);
+      hm.put("baseCurrency", strConvertCurrency);
+      hm.put("conversionDate", strConversionDate);
+
+      fp[0] = new FieldProviderFactory(hm);
+      FieldProvider[] data = fp;
+
+      OBContext.restorePreviousMode();
+      return data;
+    }
+  }
+
+  public FieldProvider[] getPaymentReport(VariablesSecureApp vars, String 
strOrg,
+      String strInclSubOrg, String strDueDateFrom, String strDueDateTo, String 
strAmountFrom,
+      String strAmountTo, String strDocumentDateFrom, String strDocumentDateTo,
       String strcBPartnerIdIN, String strcBPGroupIdIN, String 
strcNoBusinessPartner,
       String strcProjectIdIN, String strfinPaymSt, String strPaymentMethodId,
       String strFinancialAccountId, String strcCurrency, String 
strConvertCurrency,

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to