[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 36e85252445dba320d965b4338adc2405094fdfb
Evergreen Git
git at git.evergreen-ils.org
Thu May 10 10:27:59 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_1 has been updated
via 36e85252445dba320d965b4338adc2405094fdfb (commit)
from d1dc323481a52b1c04e5b3d4af1da171c01a6a24 (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 36e85252445dba320d965b4338adc2405094fdfb
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 1058e8c..6ef33f7 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
@@ -702,6 +702,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