Date Range of 'Last Month' in Order Manager bug?
Date Range of 'Last Month' in Order Manager bug?
In Order Manager, choose All or All valid under Order Status and choose Date Range of 'Last Month'....for us we don't see orders for 10/31/2009. If we choose last 30 days or Last Week...we see those orders. Has anyone else seen this issue? Bug? Running 7.0.3. Build: 12458
Re: Date Range of 'Last Month' in Order Manager bug?
Its a wild guess it may be because of time part in data taking part in filtering criteria. Give a try and edit Admin/Orders/Default.ascx.cs file and locate following code
and replace it with these lines
Save the file and again try the date filter having problem.
Code: Select all
criteria.OrderDateEnd = AlwaysConvert.ToDateTime(HiddenEndDate.Value, DateTime.MaxValue);
Code: Select all
criteria.OrderDateEnd = AlwaysConvert.ToDateTime(HiddenEndDate.Value, DateTime.MaxValue);
criteria.OrderDateEnd = new DateTime(criteria.OrderDateEnd.Year, criteria.OrderDateEnd.Month, criteria.OrderDateEnd.Day, 23, 59, 59);
Re: Date Range of 'Last Month' in Order Manager bug?
That did it. Thanks Mazhar!