Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019070 | Openbravo ERP | A. Platform | public | 2011-11-15 12:12 | 2011-12-22 11:53 |
|
Reporter | mirurita | |
Assigned To | mtaal | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0MP7 | Fixed in Version | 3.0MP7 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0019070: When you enter a date previous to 01-01-0100 the date changed when you save |
Description | When you enter a date previous to 01-01-0100 the date selector is allowing to do it (no warnings shown) but when you save the record the date is recalculated.
For example, if you enter 01-01-0001, you will see after saving it 01-01-1901 (in database 01-01-0001 is stored).
In 2.50 it is allowed to enter 01-01-0001 and it is working fine, is correctly stored in database.
In fact, if you come from a 2.50 and you have documents in a date previous to 01-01-0100 (for example we recommend it for opening a balance http://wiki.openbravo.com/wiki/ERP_2.50:Configuration_Manual/Setting_up_accounting#Setting_the_opening_balance [^]) although in database is stored properly because it was saved in 2.50, the user will see other value in the interface. |
Steps To Reproduce | 1) Create a new sales order
2) Enter in any date selector: 01-01-0001
2) Click on save button
Realize that the date is changed to 01-01-1901 |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0018484 | 3.0MP5 | closed | mtaal | Fields Updated and Created do not have the hour |
|
Attached Files | Date changed when saving.png (67,256) 2011-11-15 12:12 https://issues.openbravo.com/file_download.php?file_id=4753&type=bug
|
|
Issue History |
Date Modified | Username | Field | Change |
2011-11-15 12:12 | mirurita | New Issue | |
2011-11-15 12:12 | mirurita | Assigned To | => alostale |
2011-11-15 12:12 | mirurita | File Added: Date changed when saving.png | |
2011-11-15 12:12 | mirurita | Modules | => Core |
2011-11-15 16:30 | mirurita | Resolution time | => 1327532400 |
2011-11-15 16:30 | mirurita | Target Version | => 3.0MP7 |
2011-11-15 16:56 | alostale | Relationship added | related to 0018484 |
2011-12-12 10:00 | mtaal | Assigned To | alostale => mtaal |
2011-12-13 17:29 | hgbot | Checkin | |
2011-12-13 17:29 | hgbot | Note Added: 0043851 | |
2011-12-13 17:29 | hgbot | Status | new => resolved |
2011-12-13 17:29 | hgbot | Resolution | open => fixed |
2011-12-13 17:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b35b26fe024d10617f8e1eba1e056eed3a613173 [^] |
2011-12-13 17:32 | mtaal | Note Added: 0043852 | |
2011-12-14 10:44 | hudsonbot | Checkin | |
2011-12-14 10:44 | hudsonbot | Note Added: 0043866 | |
2011-12-22 11:53 | dbaz | Note Added: 0044005 | |
2011-12-22 11:53 | dbaz | Status | resolved => closed |
2011-12-22 11:53 | dbaz | Fixed in Version | => 3.0MP7 |
Notes |
|
(0043851)
|
hgbot
|
2011-12-13 17:29
|
|
Repository: erp/devel/pi
Changeset: b35b26fe024d10617f8e1eba1e056eed3a613173
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Dec 13 17:29:23 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b35b26fe024d10617f8e1eba1e056eed3a613173 [^]
Fixes issue 19070: When you enter a date previous to 01-01-0100 the date changed when you save
Change parsing of xml schema date to use js date function setFullYear
---
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
---
|
|
|
(0043852)
|
mtaal
|
2011-12-13 17:32
|
|
The change touches the parsing of all dates which are returned when reading data from the server. The change is a copy of existing SC code which is being replaced to make one small change in the method:
d.setFullYear instead of d.setYear
So the change (compared to the original SC code) is on the other hand very small. See this SC forum post:
http://forums.smartclient.com/showthread.php?t=20062 [^]
To test: test setting dates in sales order and other windows. |
|
|
|
|
|
(0044005)
|
dbaz
|
2011-12-22 11:53
|
|
Reviewed @ changeset 14953 - 296d6aad21a5 |
|