[freeside-commits] freeside/httemplate/misc payment.cgi,1.25,1.26

Ivan,,, ivan at wavetail.420.am
Mon Oct 5 11:17:57 PDT 2009


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv6431

Modified Files:
	payment.cgi 
Log Message:
oops, handle old cust_main.pm properly (should we be bothering?) :/ RT#5889

Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/payment.cgi,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- payment.cgi	5 Oct 2009 02:40:28 -0000	1.25
+++ payment.cgi	5 Oct 2009 18:17:55 -0000	1.26
@@ -300,8 +300,12 @@
 my $fee_pkg = '';
 my $fee_display = '';
 my $fee_op = '';
+my $num_payments = scalar($cust_main->cust_pay);
+#handle old cust_main.pm (remove...)
+$num_payments = scalar( @{ [ $cust_main->cust_pay ] } )
+  unless defined $num_payments;
 if ( $conf->config('manual_process-pkgpart')
-     and ! $conf->exists('manual_process-skip_first') || $cust_main->cust_pay
+     and ! $conf->exists('manual_process-skip_first') || $num_payments
    )
 {
 



More information about the freeside-commits mailing list