bug 2582 [1/2]: don't set issuedate during renewal
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 4 Sep 2008 17:23:46 +0000 (12:23 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 3 Sep 2009 23:42:11 +0000 (11:42 +1200)
commit7c335eb6218c00ee92a721914c63499411a19ee3
treeb0b91b0bd184c2c2e9fe58fd42a77fa8a3f93d02
parentcbe994bb169d314a3abd2522d9ff305331c6d057
bug 2582 [1/2]: don't set issuedate during renewal

Changed so that issues.issuedate is never modified
during a renewal, since that column records the original
date of the loan.  Changed the name and interpretation
of the $issuedate parameter of AddRenewal() to
$lastreneweddate, allowing (e.g.) offline circulation
to set the date of the renewal without changing the
issue date.

As a result of the original bug, issues.issuedate can be
set to NULL for loans that were renewed via the OPAC,
self checkout, or the staff interface when explicitly
renewing a loan.  Loans that were renewed by checking
the item out to the same patron will have the issue date
changed to the date of the last renewal.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Circulation.pm