Have amnesty mode override backdate for voiding user/mmorgan/lp1444514_amnesty_mode_overrides_backdate_signoff
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 15 Apr 2015 14:48:03 +0000 (10:48 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 12 Jun 2015 15:35:58 +0000 (11:35 -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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index b3281c9..266d00c 100644 (file)
@@ -2829,7 +2829,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;