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)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 4 Nov 2008 18:15:54 +0000 (19:15 +0100)
commit492ff3a3c861b428313ed763c1775fc2d220fc5f
treec54f38e32cc04b3269f715e2ac33f4a5874cf11b
parent58d7bac4c15aa8720cac5aa2d316d463e137c270
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>
C4/Circulation.pm
t/lib/KohaTest/Circulation/AddIssue.pm