From f27c5ae5a135ea512dd28f11291becbbe2398740 Mon Sep 17 00:00:00 2001 From: Will Stokes Date: Wed, 17 Feb 2010 14:34:07 +1300 Subject: [PATCH] Display amount of credit patron has, not just that they have credit. Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- circ/circulation.pl | 6 ++++-- .../intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 2b3235ece9..4cf77b2a3c 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -561,7 +561,8 @@ foreach my $flag ( sort keys %$flags ) { elsif ( $flag eq 'CREDITS' ) { $template->param( credits => 'true', - creditsmsg => $flags->{'CREDITS'}->{'message'} + creditsmsg => $flags->{'CREDITS'}->{'message'}, + creditsamount => sprintf("%.02f", -($flags->{'CREDITS'}->{'amount'})), # from patron's pov ); } } @@ -577,7 +578,8 @@ foreach my $flag ( sort keys %$flags ) { elsif ( $flag eq 'CREDITS' ) { $template->param( credits => 'true', - creditsmsg => $flags->{'CREDITS'}->{'message'} + creditsmsg => $flags->{'CREDITS'}->{'message'}, + creditsamount => sprintf("%.02f", -($flags->{'CREDITS'}->{'amount'})), # from patron's pov ); } elsif ( $flag eq 'ODUES' ) { 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 ac6fec7d02..d7a70fed66 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -523,7 +523,9 @@ No patron matched -
  • Credits: Patron has a credit
  • +
  • + Credits: Patron has a credit of +
  • -- 2.39.5