From d1416ed8a771885ce224f472354283eebcb216ad Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 17 Aug 2009 12:01:10 +0200 Subject: [PATCH] Removing fines getting from user search on budgets administration --- admin/aqbudget_owner_search.pl | 18 +++++------------- .../prog/en/modules/admin/aqbudgets.tmpl | 6 ++---- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/admin/aqbudget_owner_search.pl b/admin/aqbudget_owner_search.pl index 1935a6c7ab..a8f9405792 100755 --- a/admin/aqbudget_owner_search.pl +++ b/admin/aqbudget_owner_search.pl @@ -63,13 +63,7 @@ my @resultsdata; my $toggle = 0; if ( $member ) { - my $dbh = C4::Context->dbh; - my $sth = $dbh->prepare( - qq| SELECT * from borrowers where surname like ? or firstname like ? or cardnumber like ? | - ); - - $sth->execute( "$member%", "$member%", "$member%", ); - my $results = $sth->fetchall_arrayref({}); + my $results= SearchMember($member,"surname",undef,undef,undef); foreach my $res (@$results) { @@ -86,13 +80,12 @@ if ( $member ) { $count2++; #find out stats - my ( $od, $issue, $fines ) = GetMemberIssuesAndFines( $res->{'borrowerid'} ); +# my ( $od, $issue, $fines ) = GetMemberIssuesAndFines( $res->{'borrowerid'} ); + #This looks unused and very unuseful my $guarantorinfo = uc( $res->{'surname'} ) . " , " . ucfirst( $res->{'firstname'} ); my $budget_owner_name = $res->{'firstname'} . ' ' . $res->{'surname'}, my $budget_owner_id = $res->{'borrowernumber'}; my %row = ( - toggle => $toggle, - count => 1, borrowernumber => $res->{'borrowernumber'}, cardnumber => $res->{'cardnumber'}, surname => $res->{'surname'}, @@ -102,11 +95,10 @@ if ( $member ) { guarantorinfo => $guarantorinfo, budget_owner_id => $budget_owner_id, budget_owner_name => $budget_owner_name, - odissue => "$od/$issue", - fines => $fines, +# odissue => "$od/$issue", +# fines => $fines, # borrowernotes => $res->{'borrowernotes'} ); - $toggle = ( $toggle++ % 2 eq 0 ? 1 : 0 ); push( @resultsdata, \%row ); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl index 661ff4c779..6ddbf8d9f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl @@ -290,9 +290,7 @@ @@ -349,7 +347,7 @@
- Cancel + Cancel
-- 2.39.5