From 887a81ddb12d6dc9337ece5c6ebe87705c242f4c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Aug 2012 07:53:33 -0400 Subject: [PATCH] Bug 8408 - Followup - Fix broken messages. --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 4 ++-- opac/opac-user.pl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index 26b5efc..2ec1e6e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -101,9 +101,9 @@ $.tablesorter.addParser({
  • Please note: Your library card has been marked as lost or stolen. If this is an error, please contact the library.
  • [% END %] [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %] -
  • Please note: Since you have more than [% renewal_blocked_fines %] in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.
  • +
  • Please note: Since you have [% IF renewal_blocked_fines != "0.00" %] more than [% renewal_blocked_fines %] in [% END %] fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.
  • [% ELSIF ( renewal_blocked_fines ) %] -
  • Please note: You currently owe [% renewal_blocked_fines %] in fines.
  • +
  • Please note: You currently owe [% renewal_blocked_fines_amountoutstanding %] in fines.
  • [% END %] [% END %] diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 50a167e..eee3d38 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -109,7 +109,8 @@ if ( $borr->{amountoutstanding} > $no_renewal_amt ) { $borr->{'flagged'} = 1; $canrenew = 0; $template->param( - renewal_blocked_fines => sprintf( '%.02f', $borr->{amountoutstanding} ), + renewal_blocked_fines => sprintf( '%.02f', $no_renewal_amt ), + renewal_blocked_fines_amountoutstanding => sprintf( '%.02f', $borr->{amountoutstanding} ), ); } -- 1.7.2.5