Related to ISSUE-44780. Code Review Changes:
authordavid.miguelez <david.miguelez@openbravo.com>
Thu, 13 Aug 2020 14:07:25 +0200
changeset 37509 549b86216390
parent 37508 89b0b6a30daf
child 37510 76b5ebe416de
Related to ISSUE 44780. Code Review Changes:
* Prevents API change by overloading the existing method
src/org/openbravo/erpCommon/ad_reports/AgingDao.java
--- a/src/org/openbravo/erpCommon/ad_reports/AgingDao.java	Wed Aug 12 09:00:14 2020 +0200
+++ b/src/org/openbravo/erpCommon/ad_reports/AgingDao.java	Thu Aug 13 14:07:25 2020 +0200
@@ -74,6 +74,16 @@
   public FieldProvider[] getOpenReceivablesAgingSchedule(ConnectionProvider connectionProvider,
       String strcBpartnerId, String strAccSchema, Date currentDate, String strcolumn1,
       String strcolumn2, String strcolumn3, String strcolumn4, String strOrg,
+      Set<String> organizations, String recOrPay, boolean showDoubtfulDebt, boolean excludeVoids)
+      throws IOException, ServletException {
+    return getOpenReceivablesAgingSchedule(connectionProvider, strcBpartnerId, strAccSchema,
+        currentDate, strcolumn1, strcolumn2, strcolumn3, strcolumn4, strOrg, organizations,
+        recOrPay, showDoubtfulDebt, excludeVoids, false);
+  }
+
+  public FieldProvider[] getOpenReceivablesAgingSchedule(ConnectionProvider connectionProvider,
+      String strcBpartnerId, String strAccSchema, Date currentDate, String strcolumn1,
+      String strcolumn2, String strcolumn3, String strcolumn4, String strOrg,
       Set<String> organizations, String recOrPay, boolean showDoubtfulDebt, boolean excludeVoids,
       boolean excludeReverseds) throws IOException, ServletException {
 
@@ -214,6 +224,17 @@
    * This method returns an array of fieldProviders with the necessary information to print the
    * Aging Schedule Details report.
    */
+
+  public FieldProvider[] getOpenReceivablesAgingScheduleDetails(
+      ConnectionProvider connectionProvider, Date currentDate, SimpleDateFormat dateFormat,
+      Currency convCurrency, Set<String> organizations, String recOrPay, String strcolumn1,
+      String strcolumn2, String strcolumn3, String strcolumn4, String strcBpartnerId,
+      boolean showDoubtfulDebt, Boolean excludeVoid) throws IOException, ServletException {
+    return getOpenReceivablesAgingScheduleDetails(connectionProvider, currentDate, dateFormat,
+        convCurrency, organizations, recOrPay, strcolumn1, strcolumn2, strcolumn3, strcolumn4,
+        strcBpartnerId, showDoubtfulDebt, excludeVoid, false);
+  }
+
   public FieldProvider[] getOpenReceivablesAgingScheduleDetails(
       ConnectionProvider connectionProvider, Date currentDate, SimpleDateFormat dateFormat,
       Currency convCurrency, Set<String> organizations, String recOrPay, String strcolumn1,