Totally Zenned
- Join Date:
- Sep 2004
- Posts:
- 1,237
- Plugin Contributions:
- 1
Sales report 2.0
Pauls:
Thanks for a great contrib Frank ...
Actually using the JavaScript menu does not work, I did try this method several times, the only way I can make it work between two dates (UK date format in my admin and store remember) is to MANUALLY enter the dates in the american date format.
The problem is that the date conversion is hard-coded, broken apart and stored in variables in the class file according to American date format. You can see it for yourself beginning on line 53 in the class. I can see that some modularization here is in order. Will add it to the to-do list.
For those of you who can't use the spiffycal, sorry. The code works great for me and the employees in my company, which is who I designed it for (posting code is my way of giving back). It also works fine in IE and Firefox (I have no Opera users in my office). I went with spiffycal as opposed to separate dropdowns because, well, when you run that report on a daily basis, those dropdowns get super-tedious. It all goes back to who this report is designed for: true-blue accountants and book keepers.
If you like the new version great. If it doesn't meet your needs, or offers more options than you need, you're welcome to continue to use the old version, or nothing at all. It really doesn't bother me either way. Really.