From dd8bc5076865912e8885a0d87f18a229d680d343 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Wed, 23 Jul 2008 20:02:46 -0500 Subject: [PATCH] Hide the payment/writeoff dropdown on lines that are credits (or forgiven). Signed-off-by: Joshua Ferraro --- members/pay.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/pay.pl b/members/pay.pl index c968797a63..a6504721dc 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -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 ); } } -- 2.39.5