LP#1444514: Have amnesty mode override backdate for voiding
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 15 Apr 2015 14:48:03 +0000 (10:48 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 19 Aug 2015 02:55:43 +0000 (22:55 -0400)
Otherwise you get amnesty notes on just backdate voiding.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index e910c70..710c265 100644 (file)
@@ -2794,7 +2794,7 @@ sub finish_fines_and_voiding {
     my $note = 'System: Amnesty Checkin' if $self->void_overdues;
 
     my $evt = OpenILS::Application::Circ::CircCommon->void_overdues(
-        $self->editor, $self->circ, $self->backdate, $note);
+        $self->editor, $self->circ, $self->void_overdues ? undef : $self->backdate, $note);
 
     return $self->bail_on_events($evt) if $evt;