Fixes Issue 25817 Background Acct process considers exchange rate
authorAtul Gaware <atul.gaware@openbravo.com>
Fri, 04 Apr 2014 10:10:05 +0530
changeset 22876 9c1ba5cb154b
parent 22875 540012d74a89
child 22877 a7130dd050ca
Fixes Issue 25817 Background Acct process considers exchange rate
at doc level in system client
src/org/openbravo/erpCommon/ad_forms/AcctServer.java
--- a/src/org/openbravo/erpCommon/ad_forms/AcctServer.java	Fri Apr 04 12:20:12 2014 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/AcctServer.java	Fri Apr 04 10:10:05 2014 +0530
@@ -11,7 +11,7 @@
  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
  * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
  * Contributor(s): Openbravo SLU
- * Contributions are Copyright (C) 2001-2013 Openbravo S.L.U.
+ * Contributions are Copyright (C) 2001-2014 Openbravo S.L.U.
  ******************************************************************************
  */
 package org.openbravo.erpCommon.ad_forms;
@@ -2279,6 +2279,8 @@
       String curFrom_ID, String curTo_ID) {
     OBCriteria<ConversionRateDoc> docRateCriteria = OBDal.getInstance().createCriteria(
         ConversionRateDoc.class);
+    docRateCriteria.setFilterOnReadableClients(false);
+    docRateCriteria.setFilterOnReadableOrganization(false);
     docRateCriteria.add(Restrictions.eq(ConversionRateDoc.PROPERTY_TOCURRENCY, OBDal.getInstance()
         .get(Currency.class, curTo_ID)));
     docRateCriteria.add(Restrictions.eq(ConversionRateDoc.PROPERTY_CURRENCY, OBDal.getInstance()