fixed another non-initialized variable in TMPL_IF EXPR
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 13 Mar 2008 22:18:15 +0000 (17:18 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 15 Mar 2008 13:37:12 +0000 (08:37 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tmpl
members/pay.pl

index db801a5..74e24da 100644 (file)
@@ -50,7 +50,7 @@
        <!-- TMPL_LOOP name="loop_pay" -->
 <tr>
        <td>
-       <!-- TMPL_IF EXPR="amountoutstanding > 0" -->
+       <!-- TMPL_IF NAME="net_balance" -->
        <select name="payfine<!-- TMPL_VAR name="i" -->">
        <option value="no">Unpaid</option>
        <option value="yes">Paid</option>
index a1213bb..a473826 100755 (executable)
@@ -114,9 +114,9 @@ if ( $check == 0 ) {
                 $line{title}          = $accts->[$i]{'title'};
                 $line{notify_id}      = $accts->[$i]{'notify_id'};
                 $line{notify_level}   = $accts->[$i]{'notify_level'};
-
+                $line{net_balance} = 1;
+                push( @loop_pay, \%line );
             }
-            push( @loop_pay, \%line );
         }
 
         my $totalnotify = AmountNotify( $notify[$j], $borrowernumber );