Hide the payment/writeoff dropdown on lines that are credits (or forgiven).
authorRyan Higgins <rch@liblime.com>
Thu, 24 Jul 2008 01:02:46 +0000 (20:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 24 Jul 2008 16:26:11 +0000 (11:26 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
members/pay.pl

index c968797..a650472 100755 (executable)
@@ -115,7 +115,7 @@ 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;
+                $line{net_balance} = 1 if($accts->[$i]{'amountoutstanding'} > 0); # you can't pay a credit.
                 push( @loop_pay, \%line );
             }
         }