Fixes issue 11473: Withholding report doesn't export to pdf
authorDavid Alsasua <david.alsasua@openbravo.com>
Mon, 14 Dec 2009 02:42:20 +0100
changeset 5702 ffba35c94a86
parent 5701 97fbb49ee242
child 5703 e7ad8a48210d
Fixes issue 11473: Withholding report doesn't export to pdf
src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.java	Sun Dec 13 19:10:57 2009 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.java	Mon Dec 14 02:42:20 2009 +0100
@@ -285,8 +285,8 @@
         "#AccessibleOrgTree", "ReportAnnualCertification"), strDateFrom, DateTimeData.nDaysAfter(
         this, strDateTo, "1"), strcBpartnerId);
 
-    String sClientID = vars.getClient();
-    String sOrganID = vars.getOrg();
+    String sClientID = vars.getUserClient();
+    String sOrganID = "'" + vars.getOrg() + "'";
     OrganizationData[] dataOrganization = OrganizationData.select(this, vars.getLanguage(),
         sClientID, sOrganID);