details:   https://code.openbravo.com/erp/devel/pi/rev/21e5d56eca66
changeset: 31992:21e5d56eca66
user:      Atul Gaware <atul.gaware <at> openbravo.com>
date:      Tue Apr 18 22:35:56 2017 +0530
summary:   Fixes issue 35743: Accounting Templates for payments are not taken 
into
account if the Acct Server Process is scheduled at System level

By default client and organization filters where added while fetching
Accounting Schema Table and Accounting Schema Table Document Type.
In case of scheduling accounting server process at system level above
information was fetched for system client 0 and organization 0 which
gives no results for the accounting schema of business client.
For fetching required data schema id and table id is enough no need
to filter it by client or organization as in the other classes
for eg: DocInvoice.java

details:   https://code.openbravo.com/erp/devel/pi/rev/48dc3283427f
changeset: 31993:48dc3283427f
user:      Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
date:      Fri Apr 28 15:39:00 2017 +0200
summary:   Related to issue 35743: Update copyright

diffstat:

 src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r f1ca59efe2f2 -r 48dc3283427f 
src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java   Fri Apr 28 
13:11:39 2017 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java   Fri Apr 28 
15:39:00 2017 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2016 Openbravo SLU
+ * All portions are Copyright (C) 2010-2017 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -331,6 +331,8 @@
 
       final OBQuery<AcctSchemaTableDocType> obqParameters = 
OBDal.getInstance().createQuery(
           AcctSchemaTableDocType.class, whereClause.toString());
+      obqParameters.setFilterOnReadableClients(false);
+      obqParameters.setFilterOnReadableOrganization(false);
       final List<AcctSchemaTableDocType> acctSchemaTableDocTypes = 
obqParameters.list();
 
       if (acctSchemaTableDocTypes != null && acctSchemaTableDocTypes.size() > 0
@@ -347,6 +349,8 @@
 
         final OBQuery<AcctSchemaTable> obqParameters2 = 
OBDal.getInstance().createQuery(
             AcctSchemaTable.class, whereClause2.toString());
+        obqParameters2.setFilterOnReadableClients(false);
+        obqParameters2.setFilterOnReadableOrganization(false);
         final List<AcctSchemaTable> acctSchemaTables = obqParameters2.list();
         if (acctSchemaTables != null && acctSchemaTables.size() > 0
             && acctSchemaTables.get(0).getCreatefactTemplate() != null)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to