]> git.koha-community.org Git - koha.git/commit
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)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 5 Sep 2008 01:11:25 +0000 (20:11 -0500)
commit69781fbe8b08b4ccde4d09f0499ef4a8230d3eb4
tree6169a122626aa7aa6c0161925589e0afc8dc4831
parent07e30920c324ee6ae027ea8adab38ba74c834f90
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