Koha/koha-tmpl/intranet-tmpl/prog/en
Garry Collum 67825637be Bug 6984 - Holds statistics doesn't work.
This patch fixes several errors in reserves_stats.pl and reserves_stats.tt.

Testing -
To test this patch, data must be in either the reserves table or old_reserves or both.  The following SQL will give you the raw data that is used by the report.

SELECT priority, found, reservedate, notificationdate, reminderdate,
waitingdate, cancellationdate, borrowers.categorycode, items.itype,
reserves.branchcode, holdingbranch, items.homebranch, items.ccode,
items.location, items.itemcallnumber, borrowers.sort1, borrowers.sort2
FROM reserves
LEFT JOIN borrowers on (borrowers.borrowernumber = reserves.borrowernumber)
LEFT JOIN items on (items.itemnumber = reserves.itemnumber)
UNION SELECT priority, found, reservedate, notificationdate, reminderdate,
waitingdate, cancellationdate, borrowers.categorycode, items.itype,
old_reserves.branchcode, holdingbranch, items.homebranch, items.ccode,
items.location, items.itemcallnumber, borrowers.sort1, borrowers.sort2
FROM old_reserves
LEFT JOIN borrowers on (borrowers.borrowernumber = old_reserves.borrowernumber)
LEFT JOIN items on (items.itemnumber = old_reserves.itemnumber)

To test the notificationdate and reminderdate, I added data to the old_reserves table, since I have never run notices on my test machine.

Ex:
UPDATE old_reserves
SET notificationdate = "2012-01-29",
reminderdate = "2012-01-29"
WHERE timestamp = "2012-01-29 20:09:34";

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Confirm original bug -- Reports work as expected now!
prove t xt t/db_dependent no different from master.
2012-02-03 14:14:15 +01:00
..
css Bug 6836: followup CSS work 2012-01-27 11:33:12 +01:00
includes Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
js Bug 7350: In neworderempty.pl duplicating an item does not preserve select box selections 2012-01-30 22:04:34 +01:00
lib Bug 6836: Add jQuery dataTables plugin 2012-01-27 11:33:11 +01:00
modules Bug 6984 - Holds statistics doesn't work. 2012-02-03 14:14:15 +01:00
xslt Bug 7332: Translated title (MARC21 242) not shown 2012-01-17 17:46:33 +01:00
columns.def