no need to search for patron summary, instead retrieve directly by usr id
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Aug 2010 22:09:30 +0000 (22:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Aug 2010 22:09:30 +0000 (22:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17083 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/SIP/Patron.pm

index f6acb69..81524a0 100644 (file)
@@ -227,7 +227,7 @@ sub fee_amount {
 
     my $e = $self->{editor};
     $e->xact_begin;
-    my $summary = $e->search_money_open_user_summary($user_id)->[0];
+    my $summary = $e->retrieve_money_open_user_summary($user_id);
     $e->rollback; # xact_rollback + disconnect
 
        my $total = $summary->balance_owed;