[freeside-commits] freeside/FS/FS cust_pay.pm,1.50.2.13,1.50.2.14
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-serv13409
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.50.2.13
retrieving revision 1.50.2.14
diff -u -d -r1.50.2.13 -r1.50.2.14
--- cust_pay.pm 13 Mar 2008 09:15:00 -0000 1.50.2.13
+++ cust_pay.pm 13 Mar 2008 09:28:46 -0000 1.50.2.14
@@ -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