Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #31857 All Revisions ] Back to Issue ]
Summary 0031857: End year close does not handle well connections when using EndYearCloseUtilityData.updateClose
Revision 2016-01-11 12:38 by ioritzCia
Description There is an error when handling connections in src/org/openbravo/erpCommon/businessUtility/EndYearCloseUtility.java file whe using EndYearCloseUtilityData.updateClose method. This method receives the connection as an argument and that connection is not automatically handled. In the following lines:

if (EndYearCloseUtilityData.updateClose(con, conn, vars.getUser(), strYearId, strOrgId) == 0) {
   String strAllPeriodsErr = Utility.messageBD(conn, "AllPeriodsPermanentClosed",
   vars.getLanguage());
   return Utility.translateError(conn, vars, vars.getLanguage(), strAllPeriodsErr);
}

When the return statement is executed, the connection is not handled as the command to handle it is about 5 lines below, but it does not get executed.

This problem happens more than once in this file, all of them should be fixed.
Revision 2016-01-11 12:29 by ioritzCia
Description There is an error when handling connections in src/org/openbravo/erpCommon/businessUtility/EndYearCloseUtility.java file whe using EndYearCloseUtilityData.updateClose method. This method receives the connection as an argument and that connection is not automatically handled. In the following lines:

if (EndYearCloseUtilityData.updateClose(con, conn, vars.getUser(), strYearId, strOrgId) == 0) {
   String strAllPeriodsErr = Utility.messageBD(conn, "AllPeriodsPermanentClosed",
   vars.getLanguage());
   return Utility.translateError(conn, vars, vars.getLanguage(), strAllPeriodsErr);
}

When the return statement is executed, the connection is not handled as the command to handle it is about 5 lines below, but it does not get executed.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker