[freeside-commits] freeside/FS/FS cust_pay.pm,1.63,1.64
Ivan,,,
ivan at wavetail.420.am
Thu Mar 13 02:28:51 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv13402
Modified Files:
cust_pay.pm
Log Message:
yow. very sleep deprived. remove the infinite loop rather than add one.
Index: cust_pay.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pay.pm,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- cust_pay.pm 13 Mar 2008 09:14:58 -0000 1.63
+++ cust_pay.pm 13 Mar 2008 09:28:44 -0000 1.64
@@ -687,19 +687,15 @@
my $count = 0;
my $lastprog = 0;
- my %seen = ();
- while (1) {
- my $cust_pay = qsearchs( {
+ my @cust_pay = qsearch( {
'table' => 'cust_pay',
'hashref' => {},
'extra_sql' => $where,
- 'order_by' => 'ORDER BY paynum LIMIT 1',
- } );
-
- return unless $cust_pay;
+ 'order_by' => 'ORDER BY paynum',
+ } );
- next if $seen{$cust_pay->paynum}++;
+ foreach my $cust_pay (@cust_pay) {
my $h_cust_pay = $cust_pay->h_search('insert');
if ( $h_cust_pay ) {
More information about the freeside-commits
mailing list