[Koha-patches] [PATCH] Hide the payment/writeoff dropdown on lines that are credits (or forgiven).

Ryan Higgins rch at liblime.com
Thu Jul 24 03:02:46 CEST 2008


---
 members/pay.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/members/pay.pl b/members/pay.pl
index c968797..a650472 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 );
             }
         }
-- 
1.5.5.GIT




More information about the Koha-patches mailing list