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 +