From: erickson Date: Tue, 7 Oct 2008 20:01:42 +0000 (+0000) Subject: run total owed and total checked out inside a transaction. in particular, give the... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fb7bd159cebab7f3a05fcaa3215fbcd94674825a;p=Evergreen.git run total owed and total checked out inside a transaction. in particular, give the penalty server latest information to work with git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10783 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index c5af42014c..abc30dfbbd 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -1121,14 +1121,20 @@ sub __patron_money_owed { sub patron_money_owed { my( $self, $userid ) = @_; - return $self->storagereq( - 'open-ils.storage.actor.user.total_owed', $userid); + my $ses = $self->start_db_session(); + my $val = $ses->request( + 'open-ils.storage.actor.user.total_owed', $userid)->gather(1); + $self->rollback_db_session($ses); + return $val; } sub patron_total_items_out { my( $self, $userid ) = @_; - return $self->storagereq( - 'open-ils.storage.actor.user.total_out', $userid); + my $ses = $self->start_db_session(); + my $val = $ses->request( + 'open-ils.storage.actor.user.total_out', $userid)->gather(1); + $self->rollback_db_session($ses); + return $val; }