calculate penalties when letting Mark Item Damaged add bills
authorJason Etheridge <jason@esilibrary.com>
Thu, 14 Jul 2011 21:21:52 +0000 (17:21 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 2 Aug 2011 13:44:27 +0000 (09:44 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm

index f5cc14c..fba805a 100644 (file)
@@ -1275,6 +1275,9 @@ sub handle_mark_damaged {
         my $ses = OpenSRF::AppSession->create('open-ils.trigger');
         $ses->request('open-ils.trigger.event.autocreate', 'checkout.damaged', $circ, $circ->circ_lib);
 
+        my $evt2 = OpenILS::Utils::Penalty->calculate_penalties($e, $circ->usr->id, $e->requestor->ws_ou);
+        return $evt2 if $evt2;
+
         return undef;
 
     } else {