Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008417Openbravo ERPB. User interfacepublic2009-04-03 12:312011-10-28 11:56
sureshbabu 
dbaz 
noneminoralways
closedno change required 
30
2.50beta 
 
Core
No
0008417: Auto fill functionality for date fields (for years) not working in Reports (Warehouse management)
In the warehouse module, auto save functionality is not working in below list of reports

Warehouse Management || Analysis Tools ||
 Expiration Date Report
 Offers Report
 Shipper Report
 Material Transaction Report
 Warehouse Control Report
 Stock Report
 Valued Stock Report
 Product Movements Report
 Detailed Warehouse Inventory
 Invoice Consignment Report
 Production Report

if we enter year as 01 its accepting whereas if we enter year as 00 the page throws script error.
Move to any report mentioned above and enter date as 010102 it should fill as 01-01-2002 based on the comments given in issue id https://issues.openbravo.com/view.php?id=5273 [^]



**********Developer comments in issue id 5273 *******************************

Finally the solution is that if a YYYY (for the year representation) is set in Openbravo.properties, any two digit input will be rounded as:

00 -> 49 .......... 2000 -> 2049
50 -> 99 .......... 1950 -> 1999

If anyone should have another range proposal, just tell me.

The proposed range is set in the variable

centuryReference

of the function

expandDateYear

of the file

web/js/default/DateTextBox.js
250 final review
related to defect 0005273 closed dbaz When entering dates with dd-mm-yy format are saved as dd-mm-00yy 
Issue History
2009-04-03 12:31sureshbabuNew Issue
2009-04-03 12:31sureshbabuAssigned To => rafaroda
2009-04-03 12:31sureshbabuRegression testing => No
2009-04-03 12:32sureshbabuTag Attached: 250 final review
2009-04-03 12:32sureshbabuTag Attached: comsup_sprint7
2009-04-03 12:53sureshbabuTag Detached: comsup_sprint7
2009-04-03 12:54sureshbabuversion => 2.50beta
2009-04-09 17:28rafarodaAssigned Torafaroda => dbaz
2009-04-09 17:28rafarodaPrioritynormal => low
2009-04-09 17:28rafarodaStatusnew => scheduled
2009-04-20 10:06dbazRelationship addedrelated to 0005273
2009-04-20 10:07dbazNote Added: 0015415
2009-04-20 10:10dbazPrioritylow => none
2011-10-28 11:56psarobeStatusscheduled => closed
2011-10-28 11:56psarobeResolutionopen => no change required

Notes
(0015415)
dbaz   
2009-04-20 10:07   
The related bug fix says

Fixed bug 5273: Now two yeard digit inputs are completed when YYYY format is set (just in WAD windows)

So the fix was done in WAD window in order to avoid instability