details:   /erp/devel/pi/rev/76c6e6a26eb0
changeset: 12904:76c6e6a26eb0
user:      Javier Etxarri <javier.echarri <at> openbravo.com>
date:      Mon Jun 20 09:03:06 2011 +0200
summary:   Fixes issue 17632: Sales Invoice Dimensional Report can't be 
filtered by "*"

diffstat:

 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
 |  16 ++++++++-
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 4420cb300486 -r 76c6e6a26eb0 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
--- 
a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
    Fri Jun 17 16:22:21 2011 +0200
+++ 
b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
    Mon Jun 20 09:03:06 2011 +0200
@@ -31,7 +31,6 @@
 import org.openbravo.base.filter.IsPositiveIntFilter;
 import org.openbravo.base.secureApp.HttpSecureAppServlet;
 import org.openbravo.base.secureApp.VariablesSecureApp;
-import org.openbravo.erpCommon.ad_combos.OrganizationComboData;
 import org.openbravo.erpCommon.businessUtility.Tree;
 import org.openbravo.erpCommon.businessUtility.TreeData;
 import org.openbravo.erpCommon.businessUtility.WindowTabs;
@@ -307,8 +306,19 @@
       throw new ServletException(ex);
     }
 
-    xmlDocument.setData("reportAD_ORGID", "liststructure", 
OrganizationComboData.selectCombo(this,
-        vars.getRole()));
+    try {
+      ComboTableData comboTableData = new ComboTableData(vars, this, 
"TABLEDIR", "AD_Org_ID", "",
+          "", Utility.getContext(this, vars, "#AccessibleOrgTree",
+              "ReportInvoiceCustomerDimensionalAnalysesJR"), 
Utility.getContext(this, vars,
+              "#User_Client", "ReportInvoiceCustomerDimensionalAnalysesJR"), 
0);
+      Utility.fillSQLParameters(this, vars, null, comboTableData,
+          "ReportInvoiceVendorDimensionalAnalysesJR", strOrg);
+      xmlDocument.setData("reportAD_ORGID", "liststructure", 
comboTableData.select(false));
+      comboTableData = null;
+
+    } catch (Exception ex) {
+      throw new ServletException(ex);
+    }
     xmlDocument.setData("reportCBPartnerId_IN", "liststructure", 
SelectorUtilityData
         .selectBpartner(this, Utility.getContext(this, vars, 
"#AccessibleOrgTree", ""), Utility
             .getContext(this, vars, "#User_Client", ""), strcBpartnerId));

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to