[freeside-commits] freeside/FS/FS/Cron set_lata_have_usage.pm, 1.1, 1.2
Erik Levinson
levinse at wavetail.420.am
Tue Jun 28 06:35:45 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv10494/FS/FS/Cron
Modified Files:
set_lata_have_usage.pm
Log Message:
improve performance of DID provisioning status report, RT10988
Index: set_lata_have_usage.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/set_lata_have_usage.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- set_lata_have_usage.pm 22 Jun 2011 18:32:21 -0000 1.1
+++ set_lata_have_usage.pm 28 Jun 2011 13:35:42 -0000 1.2
@@ -41,7 +41,7 @@
my %latas = map { $_->latanum => $_ } qsearch('lata', {});
foreach my $lata ( keys %latas ) {
- next unless $latas{$lata}->have_usage > 0;
+ next unless $latas{$lata}->have_usage && $latas{$lata}->have_usage > 0;
$latas{$lata}->have_usage(0);
my $error = $latas{$lata}->replace;
if ( $error ) {
More information about the freeside-commits
mailing list