Bug in Reports (PHPRunner V4.1)
There's a small bug in Reports...
If a date field is used as one of the report Search fields and the date field is set to a simple date picker then the date criteria will have a time compoent of "00:00:00" added. This is ok for criteria of dates more than but not for dates less than. With the time component set to "00:00:00" only dates that are the day before will be selected.
(If this has been fixed in a later version of PHPRunner can I patch the fix back into V4.1?)
Also two questions on Reports...
- I need to include the Date search criteria on a Report. (e.g. Jobs Done between dd/mm/yyyy and dd/mm/yyyy). In this case the date is the only field in the report search. How do I get at that information? (I see that the search criteria is passed back to the Report page as a form but the only field on the form I I seem to be able to access is "a" (="advsearch"). The criteria seem to be put into a series of $_SESSION variables but I haven't been able to work out their names to access them. Any hints please.
- I am summing the totals for two fields in a report (cost and charges) and need to do a simple calculation [profit% = (charges-costs)/charges] with the two totals to display in the summary. How do I do this?
Thanx in advance,
Giles.