Fixes Issue 9292: Some words are not well translated in Spanish
authorDavid Alsasua <david.alsasua@openbravo.com>
Tue, 02 Jun 2009 16:36:05 +0200
changeset 3950 aae58ee55cac
parent 3949 dfeb47c4102d
child 3951 ef6af6716e7c
Fixes Issue 9292: Some words are not well translated in Spanish
src/org/openbravo/erpCommon/ad_reports/ReportAgingBalance.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportAgingBalance.java	Tue Jun 02 14:45:23 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportAgingBalance.java	Tue Jun 02 16:36:05 2009 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SL 
- * All portions are Copyright (C) 2001-2008 Openbravo SL 
+ * All portions are Copyright (C) 2001-2009 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -127,16 +127,11 @@
       throws IOException, ServletException {
     if (log4j.isDebugEnabled())
       log4j.debug("Output: dataSheet");
-    response.setContentType("text/html");
+    response.setContentType("text/html; charset=UTF-8");
     PrintWriter out = response.getWriter();
     String discard[] = { "sectionDocType" };
     XmlDocument xmlDocument = null;
     ReportAgingBalanceData[] data = null;
-    // Jarenor
-    /*
-     * String strClient=Utility.getContext(this, vars, "#User_Client", "ReportAgingBalance"); String
-     * strOrg= Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportAgingBalance");
-     */
 
     String strTreeOrg = ReportTrialBalanceData.treeOrg(this, vars.getClient());
     String strOrgFamily = getFamily(strTreeOrg, strOrgTrx);
@@ -248,8 +243,8 @@
     xmlDocument.setParameter("dateToCol5", "");
 
     xmlDocument.setData("reportCBPartnerId_IN", "liststructure", ReportInOutData.selectBpartner(
-        this, Utility.getContext(this, vars, "#AccessibleOrgTree", ""), Utility.getContext(this, vars,
-            "#User_Client", ""), strcBpartnerId));
+        this, Utility.getContext(this, vars, "#AccessibleOrgTree", ""), Utility.getContext(this,
+            vars, "#User_Client", ""), strcBpartnerId));
     xmlDocument.setData("structure1", data);
     out.println(xmlDocument.print());
     out.close();