forcing transaction on void update and looking for any summary (not just open) on...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Aug 2006 21:26:25 +0000 (21:26 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Aug 2006 21:26:25 +0000 (21:26 +0000)
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

index e7ff9ff..6cef7cf 100644 (file)
@@ -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;