Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031857 | Openbravo ERP | 09. Financial management | public | 2016-01-11 12:29 | 2016-03-17 10:54 |
|
Reporter | ioritzCia | |
Assigned To | aferraz | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | vmromanos |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 40150 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0031857: End year close does not handle well connections when using EndYearCloseUtilityData.updateClose |
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. |
Steps To Reproduce | Close the year. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-01-11 12:29 | ioritzCia | New Issue | |
2016-01-11 12:29 | ioritzCia | Assigned To | => Triage Finance |
2016-01-11 12:29 | ioritzCia | OBNetwork customer | => No |
2016-01-11 12:29 | ioritzCia | Modules | => Core |
2016-01-11 12:29 | ioritzCia | Support ticket | => 40150 |
2016-01-11 12:29 | ioritzCia | Triggers an Emergency Pack | => No |
2016-01-11 12:38 | ioritzCia | Description Updated | bug_revision_view_page.php?rev_id=10593#r10593 |
2016-01-12 18:22 | gorka_gil | Issue Monitored: egoitz | |
2016-01-13 16:00 | egoitz | OBNetwork customer | No => Yes |
2016-01-13 16:00 | egoitz | Resolution time | => 1454713200 |
2016-01-13 17:54 | aferraz | Status | new => scheduled |
2016-01-13 17:54 | aferraz | Assigned To | Triage Finance => aferraz |
2016-01-18 15:48 | hgbot | Checkin | |
2016-01-18 15:48 | hgbot | Note Added: 0083377 | |
2016-01-18 15:48 | hgbot | Status | scheduled => resolved |
2016-01-18 15:48 | hgbot | Resolution | open => fixed |
2016-01-18 15:48 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/cd58855d10a699136d52538cb80d0fd6a6699927 [^] |
2016-01-18 15:48 | hgbot | Checkin | |
2016-01-18 15:48 | hgbot | Note Added: 0083378 | |
2016-01-18 15:48 | vmromanos | Review Assigned To | => vmromanos |
2016-01-18 15:48 | vmromanos | Note Added: 0083379 | |
2016-01-18 15:48 | vmromanos | Status | resolved => closed |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085049 | |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085050 | |
Notes |
|
(0083377)
|
hgbot
|
2016-01-18 15:48
|
|
Repository: erp/devel/pi
Changeset: cd58855d10a699136d52538cb80d0fd6a6699927
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Jan 14 14:51:22 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cd58855d10a699136d52538cb80d0fd6a6699927 [^]
Fixes issue 31857: End year close does not handle well connections
Update every error return in EndYearCloseUtility with throw new OBException in order to handle every error in catch statement, where it is included the releaseRollbackConnection.
---
M src/org/openbravo/erpCommon/businessUtility/EndYearCloseUtility.java
---
|
|
|
(0083378)
|
hgbot
|
2016-01-18 15:48
|
|
Repository: erp/devel/pi
Changeset: eb8ad8b3ea7d49063bc95db8bb14093f70e45851
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Jan 18 15:27:35 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/eb8ad8b3ea7d49063bc95db8bb14093f70e45851 [^]
Related to issue 31857: code review improvements
processButtonClose() method returns the String ProcessRunError instead of the exception.
Later on this string is evaluated to throw the right exception if necessary
---
M src/org/openbravo/erpCommon/businessUtility/EndYearCloseUtility.java
---
|
|
|
|
|
|
|
|
|
|
|