oldworldcharms Posted August 12, 2005 Posted August 12, 2005 I installed the Sales Report 2 contribution and it works great. There will be a problem shortly since we are more than 8 months into 2005 and the Report last date is December 2005, can someone tell me how to update it and where to change the years. I would like to start at Jan 1 2005. Thanks Quote
Slant Posted August 12, 2005 Posted August 12, 2005 Having had a quick look at it. It seems to take it's date from 'today', so when we reach 2006, then the last date available will change. If the report allows you to select december of this year, it will still only display reports up to tomorrow's date. This appears to be the code you're loking for: sales_report2.php in admin\includes\classes if ($endDate > mktime(0, 0, 0, date("m"), date("d") + 1, date("Y"))) { // set endDate to tomorrow $this->endDate = mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")); } else { $this->endDate = $endDate; } if ($this->endDate < $this->startDate + 24 * 60 * 60) { $this->endDate = $this->startDate + 24 * 60 * 60; Hope that helps. Quote
knacknuss Posted October 14, 2005 Posted October 14, 2005 Hi Ich have installed sales report 2 but it gives me some troubles. Items with attributes are not counted right. See below: Thanks for your help :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.