For some reason when I try to print the superbills from 20080607 to 20080607 from the reports page, I get a report with only my company name and address.
If I enter from 20080607 to 20080608 then I get the superbills for both days. What’s happening? How can I fix it?
got it. In custom_report_range.php change this line:
$res = sqlStatement("select * from forms where " .
"form_name = ‘New Patient Encounter’ and " .
"date between ‘$start’ and ‘$end’ " .
“order by date DESC”);
to
$res = sqlStatement("select * from forms where " .
"form_name = ‘New Patient Encounter’ and " .
"date between ‘$start 00:00:00’ and ‘$end 23:59:59’ " .
“order by date DESC”);
Had the same problem and the above fix did not work because the DATE comparison fails due to incorrrect format: ‘$end 23:59:59’ expands to YYYYMMDD 23:59:59 which is not in DATETIME type format.
The following changes, although a kludge, work to produce daily superbill reports: