Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025244Openbravo ERP09. Financial managementpublic2013-11-28 13:252013-12-19 12:32
ioritzCia 
dbaz 
normalmajoralways
closedfixed 
20Ubuntu 10.04
 
3.0MP313.0MP31 
alostale
Google Chrome
Core
No
0025244: Trial balance converts not existing dates to existing ones.
The date field converts not existing dates to existing ones, for example 30-02-2013 is 02-03-2013.

The report should not make the conversion or should warn the user about it, whatever two.
- Go to the Trial Balance.
- Choose the default mandatory values.
- From date 01-02-2013 To date: 28-02-2013.
- Print it.
- Print it also with From date 01-02-2013 To date: 30-02-2013.
- See that the data is different.
The report should not make the conversion or should warn the user about it, whatever two.
No tags attached.
related to defect 0022505 closed mtaal Invalid date completing in date fields. 
Issue History
2013-11-28 13:25ioritzCiaNew Issue
2013-11-28 13:25ioritzCiaAssigned To => dmiguelez
2013-11-28 13:25ioritzCiaWeb browser => Google Chrome
2013-11-28 13:25ioritzCiaModules => Core
2013-11-28 13:25ioritzCiaTriggers an Emergency Pack => No
2013-11-28 13:51dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-12-05 07:51alostaleNote Added: 0062543
2013-12-05 07:51alostaleNote Edited: 0062543bug_revision_view_page.php?bugnote_id=0062543#r5229
2013-12-05 07:51alostaleWeb browserGoogle Chrome => Google Chrome
2013-12-05 07:51alostaleAssigned Tojonalegriaesarte => shankarb
2013-12-05 07:51alostaleTarget Version => 3.0MP31
2013-12-05 11:01azabaletaIssue Monitored: azabaleta
2013-12-11 13:59AugustoMauchWeb browserGoogle Chrome => Google Chrome
2013-12-11 13:59AugustoMauchNote Added: 0062706
2013-12-11 13:59AugustoMauchTypedefect => design defect
2013-12-17 08:30alostaleWeb browserGoogle Chrome => Google Chrome
2013-12-17 08:30alostaleTypedesign defect => defect
2013-12-17 08:30alostaleAssigned Toshankarb => dbaz
2013-12-17 08:32alostaleNote Added: 0062738
2013-12-17 15:24dbazRelationship addedrelated to 0022505
2013-12-17 23:52dbazReview Assigned To => alostale
2013-12-17 23:52dbazWeb browserGoogle Chrome => Google Chrome
2013-12-17 23:54dbazIssue Monitored: alostale
2013-12-17 23:54hgbotCheckin
2013-12-17 23:54hgbotNote Added: 0062749
2013-12-17 23:55hgbotCheckin
2013-12-17 23:55hgbotNote Added: 0062750
2013-12-17 23:55hgbotStatusnew => resolved
2013-12-17 23:55hgbotResolutionopen => fixed
2013-12-17 23:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5a49c922ecdd02842614d0b4c615cad1e3f67dc7 [^]
2013-12-18 09:07hgbotCheckin
2013-12-18 09:07hgbotNote Added: 0062758
2013-12-18 09:09alostaleNote Added: 0062759
2013-12-18 09:09alostaleStatusresolved => closed
2013-12-18 09:09alostaleFixed in Version => 3.0MP31
2013-12-19 12:32hudsonbotCheckin
2013-12-19 12:32hudsonbotNote Added: 0062859
2013-12-19 12:32hudsonbotCheckin
2013-12-19 12:32hudsonbotNote Added: 0062860
2013-12-19 12:32hudsonbotCheckin
2013-12-19 12:32hudsonbotNote Added: 0062863

Notes
(0062543)
alostale   
2013-12-05 07:51   
Note this is built with 2.50 technology.

There are two problems:

1. Date field validator ensures day range is between 1 and 31, but it does not correlate it with the month, so it allows incorrect dates as described in the issue.
2. Even date is detected as incorrect, the report is allowed to be printed.

Note: when fixing this issue, ensure it works with different date formats

(0062706)
AugustoMauch   
2013-12-11 13:59   
Moved to design defect, because this is the expected behavior.

We will add a new preference (ShowWInvalidDateWarning). If this property is set then when a change of date happens a warning dialog will be shown to the user.
(0062738)
alostale   
2013-12-17 08:32   
Discussed with Augusto: it is a defect.

What should be fixed:
-Validation should check months with less than 31 days and fail in this case
-If validation fails, clicking the button shouldn't execute the report (note PG allows this kind dates whereas they fail in ORA)
(0062749)
hgbot   
2013-12-17 23:54   
Repository: erp/devel/pi
Changeset: 380fb64679e9ec00893eb7740579e0a01e7492a3
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Tue Dec 17 23:48:04 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/380fb64679e9ec00893eb7740579e0a01e7492a3 [^]

Related to issue 25244: Now an error is shown in non-existing dates
like 30-02-2013 or 32-08-2013 in 2.50 based windows

---
M src/org/openbravo/erpCommon/security/Login.html
M src/org/openbravo/erpCommon/security/Login_F1.html
M web/js/default/DateTextBox.js
M web/js/dojo/dojo.js
M web/js/utils.js
---
(0062750)
hgbot   
2013-12-17 23:55   
Repository: erp/devel/pi
Changeset: 5a49c922ecdd02842614d0b4c615cad1e3f67dc7
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Tue Dec 17 23:49:52 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5a49c922ecdd02842614d0b4c615cad1e3f67dc7 [^]

Fixed issue 25244: Now 'Trial Balance' report cannot be generated if
there is an invalid date

---
M src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html
---
(0062758)
hgbot   
2013-12-18 09:07   
Repository: erp/devel/pi
Changeset: 469ba15fbba34671427c69466e2ae564e06b90f8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Dec 18 09:05:46 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/469ba15fbba34671427c69466e2ae564e06b90f8 [^]

related to issue 25244: prevent xls/pdf trial balance if params are not correct

---
M src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java
---
(0062759)
alostale   
2013-12-18 09:09   
Tested and code reviewed (added prevention of xls and pdf generation when params are not correct)
(0062859)
hudsonbot   
2013-12-19 12:32   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b878bb51dc09 [^]

Maturity status: Test
(0062860)
hudsonbot   
2013-12-19 12:32   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b878bb51dc09 [^]

Maturity status: Test
(0062863)
hudsonbot   
2013-12-19 12:32   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b878bb51dc09 [^]

Maturity status: Test