[open-ils-commits] [GIT] Evergreen ILS branch master updated. 305f63cb721f975762bbcde1025f62bc5168cc67

Evergreen Git git at git.evergreen-ils.org
Thu May 10 10:25:00 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, master has been updated
       via  305f63cb721f975762bbcde1025f62bc5168cc67 (commit)
      from  ae9641cfae8f9b4535624599c3887c1232c3406e (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 305f63cb721f975762bbcde1025f62bc5168cc67
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