From e3528b3e83384ae26894a71f0baba6cfb50a657a Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 14 Oct 2008 14:36:42 -0600 Subject: [PATCH] Add fine amount to display on circ pages. Signed-off-by: Galen Charlton --- circ/circulation.pl | 4 +++- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) 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 + , ) -- 2.39.5