Display amount of credit patron has, not just that they have credit.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
5b33873c21
commit
f27c5ae5a1
|
|
@ -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' ) {
|
||||
|
|
|
|||
|
|
@ -523,7 +523,9 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
|
|||
<!-- /TMPL_IF -->
|
||||
|
||||
<!-- TMPL_IF NAME="credits" -->
|
||||
<li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
|
||||
<li>
|
||||
<span class="circ-hlt">Credits:</span> Patron has a credit<!-- TMPL_IF NAME="creditsamount" --> of <!-- TMPL_VAR name="creditsamount" --><!-- /TMPL_IF -->
|
||||
</li>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue