Add fine amount to display on circ pages.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Michael Hafen 2008-10-14 14:36:42 -06:00 committed by Henri-Damien LAURENT
parent 9c998bac03
commit e3528b3e83
4 changed files with 8 additions and 3 deletions

View File

@ -568,6 +568,7 @@ foreach $flag ( sort keys %$flags ) {
$template->param(
charges => 'true',
chargesmsg => $flags->{'CHARGES'}->{'message'},
chargesamount => $flags->{'CHARGES'}->{'amount'},
charges_is_blocker => 1
);
}
@ -583,7 +584,8 @@ foreach $flag ( sort keys %$flags ) {
$template->param(
charges => 'true',
flagged => 1,
chargesmsg => $flags->{'CHARGES'}->{'message'}
chargesmsg => $flags->{'CHARGES'}->{'message'},
chargesamount => $flags->{'CHARGES'}->{'amount'},
);
}
if ( $flag eq 'CREDITS' ) {

View File

@ -456,6 +456,7 @@ if ($borrower) {
if ( $flag eq 'CHARGES' ) {
$flaginfo{msg} = $flag;
$flaginfo{charges} = 1;
$flaginfo{chargeamount} = $flags->{$flag}->{amount};
$flaginfo{borrowernumber} = $borrower->{borrowernumber};
}
elsif ( $flag eq 'WAITING' ) {

View File

@ -339,7 +339,7 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
<!-- TMPL_ELSE -->
<li>
<!-- /TMPL_IF -->
<span class="circ-hlt">Fines:</span> Patron has <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Outstanding fines</a>.
<span class="circ-hlt">Fines:</span> Patron has <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Outstanding fines<!-- TMPL_IF NAME="chargesamount" --> of $<!-- TMPL_VAR NAME="chargesamount" --><!-- /TMPL_IF --></a>.
<!-- TMPL_IF NAME="charges_is_blocker" -->
Checkouts are blocked because fine balance is over the limit.
<!-- /TMPL_IF -->

View File

@ -327,7 +327,9 @@ function Dopop(link) {
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR Name="riborrowernumber" -->"><!-- TMPL_VAR Name="riborsurname" -->, <!-- TMPL_VAR Name="ribortitle" --> <!-- TMPL_VAR Name="riborfirstname" --></a> (<!-- TMPL_VAR Name="riborcnum" -->)
<!-- TMPL_IF Name="flagset" -->
(<!-- TMPL_LOOP Name="flagloop" -->
<!-- TMPL_VAR Name="flag" -->,
<!-- TMPL_VAR Name="flag" -->
<!-- TMPL_IF NAME="charges" --> of <!-- TMPL_VAR NAME="chargeamount" --> <!-- /TMPL_IF -->
,
<!-- /TMPL_LOOP -->)<!-- /TMPL_IF -->
</td>
</tr>