details: http://code.openbravo.com/erp/devel/pi/rev/0cdfdc3e3caa changeset: 3521:0cdfdc3e3caa user: David Alsasua <david.alsasua <at> openbravo.com> date: Mon Apr 06 15:32:54 2009 +0200 summary: Fixes Bug 8411: report cash don't show initial balance
diffstat: src/org/openbravo/erpCommon/ad_reports/ReportCashJR.java | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) diffs (39 lines): diff -r 8fe85e24c2ed -r 0cdfdc3e3caa src/org/openbravo/erpCommon/ad_reports/ReportCashJR.java --- a/src/org/openbravo/erpCommon/ad_reports/ReportCashJR.java Mon Apr 06 15:30:40 2009 +0200 +++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashJR.java Mon Apr 06 15:32:54 2009 +0200 @@ -30,6 +30,7 @@ import org.openbravo.base.secureApp.VariablesSecureApp; import org.openbravo.erpCommon.businessUtility.WindowTabs; import org.openbravo.erpCommon.utility.ComboTableData; +import org.openbravo.erpCommon.utility.DateTimeData; import org.openbravo.erpCommon.utility.LeftTabsBar; import org.openbravo.erpCommon.utility.NavigationBar; import org.openbravo.erpCommon.utility.OBError; @@ -69,7 +70,7 @@ } else { data = ReportCashJRData.select(this, vars.getLanguage(), Utility.getContext(this, vars, "#User_Client", "ReportCashJR"), Utility.getContext(this, vars, "#AccessibleOrgTree", - "ReportCashJR"), strDateFrom, strCashbook, strDateTo); + "ReportCashJR"), strDateFrom, strCashbook, DateTimeData.nDaysAfter(this, strDateTo, "1")); String strReportPath = "@basedesign@" + "/org/openbravo/erpCommon/ad_reports/ReportCashJR.jrxml"; @@ -80,18 +81,6 @@ renderJR(vars, response, strReportPath, "html", parameters, data, null); } - /* - * xmlDocument =xmlEngine.readXmlTemplate( "org/openbravo/erpCommon/ad_reports/ReportCashJREdit" - * ).createXmlDocument(); data = ReportCashJRData.select(this, vars.getLanguage(), - * Utility.getContext(this, vars, "#User_Client", "ReportCashJR"), Utility.getContext(this, - * vars, "#AccessibleOrgTree", "ReportCashJR"), strDateFrom, DateTimeData.nDaysAfter(this, - * strDateTo,"1"), strCashbook); xmlDocument.setParameter("sumAmount", - * ReportCashJRData.BeginningBalance(this, Utility.getContext(this, vars, "#User_Client", - * "ReportCashJR"), Utility.getContext(this, vars, "#AccessibleOrgTree", "ReportCashJR"), strDateFrom, - * strCashbook)); xmlDocument.setData("structure1", data); out.println(xmlDocument.print()); - * out.close(); - */ - } void printPageDataSheet(HttpServletResponse response, VariablesSecureApp vars, ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits