[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 123751f55c82babf83ad9a219722c3d15cbcca2e

Evergreen Git git at git.evergreen-ils.org
Thu May 10 10:27:24 EDT 2012


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_2 has been updated
       via  123751f55c82babf83ad9a219722c3d15cbcca2e (commit)
      from  b3ef0085bcdf7eb64f1098f930614781f52652cd (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 123751f55c82babf83ad9a219722c3d15cbcca2e
Author: Bill Erickson <berick at esilibrary.com>
Date:   Fri May 4 09:18:10 2012 -0400

    Check if transaction needs closing after adding billings
    
    This addresses the issue where issuing refunds results in a negative
    ballance and it is then impossible to close the transaction by creating
    new billings.
    
    https://bugs.launchpad.net/evergreen/+bug/758982
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
index b8cc573..f8c276d 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
@@ -703,6 +703,10 @@ sub billing_items_create {
     $e->create_money_billing($billing) or return $e->die_event;
     my $evt = OpenILS::Utils::Penalty->calculate_penalties($e, $xact->usr, $U->xact_org($xact->id,$e));
     return $evt if $evt;
+
+    $evt = _check_open_xact($e, $xact->id, $xact);
+    return $evt if $evt;
+
     $e->commit;
 
     return $billing->id;

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

Summary of changes:
 .../perlmods/lib/OpenILS/Application/Circ/Money.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list