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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018395
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalalways2011-08-31 10:452011-09-07 17:58
ReporteregoitzView Statuspublic 
Assigned Todbaz 
PriorityimmediateResolutionfixedFixed in Version3.0MP3
StatusclosedFix in branchFixed in SCM revisionfe4778854fbd
ProjectionnoneETAnoneTarget Version3.0MP3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0MP2SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018395: Not possible to save documents with a date of a month with 30 or 28 days.

DescriptionNot possible to save dates if the month has 30 or 28 days.
Not possible to save documents with a date of February, April, June, September, November.
Steps To Reproduce-Create a new invoice.
-Define the date 01-09-2011
*See that the date is changed to 01-10-2011
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0040640)
dbaz (developer)
2011-08-31 20:04

Notice that the issue is only reproducible the 31th of each month (if the month has 31 days).

The problem is in the Date object construction way.

  JSDate.setFullYear(fullYear);
  JSDate.setMonth(month - 1); (javascript months goes from 0 to 11)
  JSDate.setDate(day);

Let's assume that we are in 31-08-2011 and we enter the date 01-09-2011

The Date object starts from 'today' date: 31-08-2011

setFullYear puts the year to 2011, so we have 31-08-2011

setMonth changes the month to September, so we have 31-09-2011 which really is 01-10-2011

setDate sets the day to 1, so we have 01-10-2011
(0040641)
hgbot (developer)
2011-08-31 20:07

Repository: erp/devel/pi
Changeset: 144538d99c984f1937d34fa18ed61943090f2030
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Aug 31 20:06:35 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/144538d99c984f1937d34fa18ed61943090f2030 [^]

Fixed issue 18395: Now date is right calculated also the 31th of each month

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
---
(0040674)
hudsonbot (developer)
2011-09-01 14:35

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/6b7e3ac301b9 [^]

Maturity status: Test
(0040691)
jonalegriaesarte (reporter)
2011-09-01 18:05

Verified
(0040778)
hgbot (developer)
2011-09-07 11:27

Repository: erp/devel/pi
Changeset: fe4778854fbd50e58ed5a32fec9a937665bc278f
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Aug 31 20:06:35 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fe4778854fbd50e58ed5a32fec9a937665bc278f [^]

Fixed issue 18395: Now date is right calculated also the 31th of each month

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
---
(0040811)
egoitz (developer)
2011-09-07 17:58

verified

- Issue History
Date Modified Username Field Change
2011-08-31 10:45 egoitz New Issue
2011-08-31 10:45 egoitz Assigned To => alostale
2011-08-31 10:45 egoitz Modules => Core
2011-08-31 10:46 egoitz Resolution time => 1315260000
2011-08-31 10:46 egoitz Issue Monitored: networkb
2011-08-31 10:52 jonalegriaesarte Assigned To alostale => dbaz
2011-08-31 11:33 jonalegriaesarte Target Version => 3.0MP3
2011-08-31 20:04 dbaz Note Added: 0040640
2011-08-31 20:07 hgbot Checkin
2011-08-31 20:07 hgbot Note Added: 0040641
2011-08-31 20:07 hgbot Status new => resolved
2011-08-31 20:07 hgbot Resolution open => fixed
2011-08-31 20:07 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/144538d99c984f1937d34fa18ed61943090f2030 [^]
2011-09-01 14:35 hudsonbot Checkin
2011-09-01 14:35 hudsonbot Note Added: 0040674
2011-09-01 18:05 jonalegriaesarte Note Added: 0040691
2011-09-01 18:05 jonalegriaesarte Status resolved => closed
2011-09-01 18:05 jonalegriaesarte Fixed in Version => 3.0MP3
2011-09-07 11:27 hgbot Checkin
2011-09-07 11:27 hgbot Note Added: 0040778
2011-09-07 11:27 hgbot Status closed => resolved
2011-09-07 11:27 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/144538d99c984f1937d34fa18ed61943090f2030 [^] => http://code.openbravo.com/erp/devel/pi/rev/fe4778854fbd50e58ed5a32fec9a937665bc278f [^]
2011-09-07 17:58 egoitz Note Added: 0040811
2011-09-07 17:58 egoitz Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker