Fix for bug 1515
authorChris Cormack <crc@liblime.com>
Mon, 31 Dec 2007 01:19:09 +0000 (19:19 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 31 Dec 2007 02:51:22 +0000 (20:51 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Members.pm
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

index 2843d51..d95b883 100644 (file)
@@ -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 )
index 0492330..6d9ab9b 100755 (executable)
@@ -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(
index 2d7f5b5..5a9a481 100755 (executable)
@@ -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>