From ef0d7a93a522463dd1d40271ab6e1875887dfac3 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 18 Aug 2006 21:26:25 +0000 Subject: [PATCH] forcing transaction on void update and looking for any summary (not just open) on xact-finish check git-svn-id: svn://svn.open-ils.org/ILS/trunk@5598 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm index e7ff9ffb66..6cef7cf438 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm @@ -380,7 +380,7 @@ sub void_bill { my( $s, $c, $authtoken, $billid ) = @_; #my $e = OpenILS::Utils::Editor->new( authtoken => $authtoken ); - my $e = new_editor( authtoken => $authtoken ); + my $e = new_editor( authtoken => $authtoken, xact => 1 ); return $e->event unless $e->checkauth; return $e->event unless $e->allowed('VOID_BILLING'); @@ -422,7 +422,7 @@ sub _check_open_xact { or return $editor->event; # grab the summary and see how much is owed on this transaction - my $summary = $editor->retrieve_money_open_billable_transaction_summary($xactid) + my $summary = $editor->retrieve_money_billable_transaction_summary($xactid) or return $editor->event; # grab the circulation if it is a circ; -- 2.11.0