[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 76d95e1f1d08c6a4d1be36e8f43fa9dc57fe8a1b

Evergreen Git git at git.evergreen-ils.org
Thu Sep 8 16:42:30 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  76d95e1f1d08c6a4d1be36e8f43fa9dc57fe8a1b (commit)
      from  e2d50e9f062c4c28751105a107d7c2e33e5289d3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 76d95e1f1d08c6a4d1be36e8f43fa9dc57fe8a1b
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Thu Sep 8 16:08:30 2011 -0400

    Calculate penalties when marking items lost
    
    For example, if you a max fines threshold of $10, and a lost processing fee of
    $50, currently if you mark an item lost (or an item ages to lost) and a patron
    gets billed that $50, they won't automatically have the max fines penalty.  This
    change calculates such penalties at the time a copy is marked and lost and money
    is juggled, within the same transaction.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
index 81cabe7..80b6423 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
@@ -580,5 +580,8 @@ sub set_item_lost {
     my $ses = OpenSRF::AppSession->create('open-ils.trigger');
     $ses->request('open-ils.trigger.event.autocreate', 'lost', $circ, $circ->circ_lib);
 
+    my $evt2 = OpenILS::Utils::Penalty->calculate_penalties($e, $circ->usr, $U->xact_org($circ->id,$e));
+    return $evt2 if $evt2;
+
     return undef;
 }

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/Application/Cat/AssetCommon.pm     |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list