From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 4 Aug 2010 22:09:30 +0000 (+0000)
Subject: no need to search for patron summary, instead retrieve directly by usr id
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6d8accff532518e2116045cf73ec6db71cbfbd09;p=evergreen%2Ftadl.git

no need to search for patron summary, instead retrieve directly by usr id

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17083 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/src/perlmods/OpenILS/SIP/Patron.pm b/Open-ILS/src/perlmods/OpenILS/SIP/Patron.pm
index f6acb6971f..81524a0fba 100644
--- a/Open-ILS/src/perlmods/OpenILS/SIP/Patron.pm
+++ b/Open-ILS/src/perlmods/OpenILS/SIP/Patron.pm
@@ -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;