Fix for bug 1515
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
35928dfeaa
commit
48b4d54408
3 changed files with 8 additions and 3 deletions
|
@ -426,7 +426,7 @@ sub patronflags {
|
|||
elsif ( $amount < 0 ) {
|
||||
my %flaginfo;
|
||||
$flaginfo{'message'} = sprintf "Patron has credit of \$%.02f", -$amount;
|
||||
$flags{'CHARGES'} = \%flaginfo;
|
||||
$flags{'CREDITS'} = \%flaginfo;
|
||||
}
|
||||
if ( $patroninformation->{'gonenoaddress'}
|
||||
&& $patroninformation->{'gonenoaddress'} == 1 )
|
||||
|
|
|
@ -458,7 +458,6 @@ if ($borrower) {
|
|||
my $i = 1;
|
||||
foreach my $book (@todaysissues) {
|
||||
$book->{'togglecolor'} = (++$i % 2) ? 0 : 1 ;
|
||||
warn $book->{'timestamp'};
|
||||
}
|
||||
$i = 1;
|
||||
foreach my $book (@previousissues) {
|
||||
|
@ -536,7 +535,7 @@ my $flags = $borrower->{'flags'};
|
|||
my $flag;
|
||||
|
||||
foreach $flag ( sort keys %$flags ) {
|
||||
|
||||
$template->param( flagged=> 1);
|
||||
$flags->{$flag}->{'message'} =~ s/\n/<br>/g;
|
||||
if ( $flags->{$flag}->{'noissues'} ) {
|
||||
$template->param(
|
||||
|
|
|
@ -301,6 +301,12 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
|
|||
Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<!-- TMPL_IF NAME="credits" -->
|
||||
<li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue