[freeside-commits] freeside/FS/bin freeside-cdrrewrited,1.15,1.16
Ivan,,,
ivan at wavetail.420.am
Mon May 9 16:16:10 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv18178
Modified Files:
freeside-cdrrewrited
Log Message:
fix inadvertant un-rewriting of taqua accountcode CDRs, RT#12181
Index: freeside-cdrrewrited
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-cdrrewrited,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -d -r1.15 -r1.16
--- freeside-cdrrewrited 9 May 2011 22:14:36 -0000 1.15
+++ freeside-cdrrewrited 9 May 2011 23:16:08 -0000 1.16
@@ -49,6 +49,7 @@
: '';
my $found = 0;
+ my %skip = ();
foreach my $cdr (
qsearch( {
'table' => 'cdr',
@@ -61,6 +62,8 @@
} )
) {
+ next if $skip{$cdr->acctid};
+
$found = 1;
my @status = ();
@@ -125,6 +128,7 @@
warn "WARNING: error rewriting primary CDR (will retry): $error\n";
next;
}
+ $skip{$primary->acctid} = 1;
push @status, 'taqua-accountcode';
$cdr->status('done'); #so it doesn't try to rate
More information about the freeside-commits
mailing list