[Koha-patches] [PATCH] change references to 'reserves' in billing report template
Galen Charlton
galen.charlton at liblime.com
Tue Apr 1 19:01:05 CEST 2008
New billing report has nothing to do with hold requests per se,
so change template variables in order to not confuse customizers.
---
circ/billing.pl | 6 +++---
.../prog/en/modules/circ/billing.tmpl | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/circ/billing.pl b/circ/billing.pl
index 2577371..346084a 100755
--- a/circ/billing.pl
+++ b/circ/billing.pl
@@ -161,13 +161,13 @@ if (C4::Context->preference('IndependantBranches')){
else {
$sth->execute();
}
-my @reservedata;
+my @billingdata;
my $previous;
my $this;
while ( my $data = $sth->fetchrow_hashref ) {
my @itemlist;
push(
- @reservedata,
+ @billingdata,
{
l_accountype => $data->{l_accounttype},
l_description => $data->{l_description},
@@ -200,7 +200,7 @@ $template->param(
from => $startdate,
to => $enddate,
ratio => $max_bill,
- reserveloop => \@reservedata,
+ billingloop => \@billingdata,
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1,
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
);
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/billing.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/billing.tmpl
index 26463ac..8cd0015 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/billing.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/billing.tmpl
@@ -107,7 +107,7 @@ Calendar.setup(
<div class="searchresults">
- <!-- TMPL_IF NAME="reserveloop" -->
+ <!-- TMPL_IF NAME="billingloop" -->
<table>
<tr>
<th >Patron
@@ -135,7 +135,7 @@ Calendar.setup(
<!-- TMPL_IF name="BiblioDefaultViewisbd" -->
<!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="reserveloop" -->
+ <!-- TMPL_LOOP NAME="billingloop" -->
<tr>
<!-- TMPL_IF name="surname" -->
<td>
--
1.5.5.rc0.16.g02b00
More information about the Koha-patches
mailing list