Hide the payment/writeoff dropdown on lines that are credits (or forgiven).
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
eeef609466
commit
dd8bc50768
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue