adapted email_contacts table to accept department code and report status values (setup/schema/email_reports.sql); redesigned mail_reports.pl -> email_reports.pl to allow multiple departments per hospital/organisation (not supported by mail_reports), and department and report status info now derived from email_contacts tbl, not hard-coded into script; reverted referrer_department => {updated some tests with year change or change of html tag
Major update to print run function: * print run returns single pdf instead of html page, to allow individual report page headers and numbers * avoided breaking section summaries across new page in report * moved report page numbering to footer.html * expanded horizontal space for "Amended report by" details * fixed error in PDF::WebKit->configure options format Other updates: * exempted print_run from Devel::Cycle code block in devel mode (already exempt in deployment) * debug() returns undef instead of '0' so .tt doesn't display return value * stopped logging process_size in QueryLog - was activated by script errors * moved notification about danger of using 2nd tab for record update to top of file * fixed time zone setting in new message notification log (was not allowing for BST) * fixed error in chart loading function, now only loads in required lab section instad of all Fix added 7th Nov: * added NCH PNH (PB) to turnaround times audit category (was included in PB category)