Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002891Openbravo ERP04. Warehouse managementpublic2008-04-17 09:592008-07-04 15:31
Dowid 
pheenan 
normalminoralways
closedfixed 
5
 
2.40beta 
No
Core
No
0002891: The date filter in the Offers Report doesn't work correct
Go to:
Warehouse Management->Analysis Tools->Offers Report

1.When entering correct date values, the report doesn't generate. The reason for this is that, the "From Date" and "To Date" are backwards. Whereas, "From Date" = "To date" and "To date" = "From date".


Enviroment:
OS: Windows XP SP2
DB: Oracle XE
Browser: FF2
Openbravo: 2.35
Language: English
No tags attached.
Issue History
2008-07-04 15:31plujanStatusresolved => closed
2008-07-04 15:31plujanFixed in Version2.40alpha-r2 => 2.40beta

Notes
(0006480)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1944705 [^]
(0003567)
Dowid   
2008-04-17 10:00   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1630374
Originator: YES

The reason of this bug is logic error in ReportOffer_Data.xsql
in the Select method:


Part of code:

AND DATEFROM <= TO_DATE(?)
AND (DATETO IS NULL OR DATETO >= TO_DATE(?))

Should be:

AND DATEFROM >= TO_DATE(?)
AND (DATETO IS NULL OR DATETO <= TO_DATE(?))
(0003568)
Dowid   
2008-04-17 10:06   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1630374
Originator: YES

There is one more problem that I've found in this report.
The Calendar popup is in Spanish when you login in English.
(0003569)
pheenan   
2008-04-23 12:23   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1883435
Originator: NO

Fixed date filtering. Committed in revision 3728 in trunk. Backported in revision 3729 in branch 2.3x