From: Michael Hafen Date: Tue, 14 Oct 2008 20:36:42 +0000 (-0600) Subject: Add fine amount to display on circ pages. X-Git-Tag: v3.00.01.005~256 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=e3528b3e83384ae26894a71f0baba6cfb50a657a;p=koha.git Add fine amount to display on circ pages. Signed-off-by: Galen Charlton --- diff --git a/circ/circulation.pl b/circ/circulation.pl index 70e7fd230b..28d0685a72 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -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' ) { diff --git a/circ/returns.pl b/circ/returns.pl index cb2f87a088..b736ecfd3c 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -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' ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 8a40fd22b6..04685a83c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -339,7 +339,7 @@ No patron matched
  • - Fines: Patron has ">Outstanding fines. + Fines: Patron has ">Outstanding fines of $. Checkouts are blocked because fine balance is over the limit. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl index 1e34195e4a..7658bd48d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl @@ -327,7 +327,9 @@ function Dopop(link) { ">, () ( - , + + of + , )