projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
171119e
)
skip toll-free calls in summary detail format, #16091
author
mark
<mark>
Mon, 16 Jan 2012 20:10:10 +0000
(20:10 +0000)
committer
mark
<mark>
Mon, 16 Jan 2012 20:10:10 +0000
(20:10 +0000)
FS/FS/detail_format/sum_duration_prefix.pm
patch
|
blob
|
history
diff --git
a/FS/FS/detail_format/sum_duration_prefix.pm
b/FS/FS/detail_format/sum_duration_prefix.pm
index
afdc196
..
19b6648
100644
(file)
--- a/
FS/FS/detail_format/sum_duration_prefix.pm
+++ b/
FS/FS/detail_format/sum_duration_prefix.pm
@@
-41,8
+41,10
@@
sub append {
# but interstate-ness should be symmetric, yes? if A places an
# interstate call to B, then B receives an interstate call from A.
my $subtotal = $prefixes->{$prefix}{$cdr->rated_ratename}
# but interstate-ness should be symmetric, yes? if A places an
# interstate call to B, then B receives an interstate call from A.
my $subtotal = $prefixes->{$prefix}{$cdr->rated_ratename}
- or die "unknown rated_ratename '" .$cdr->rated_ratename.
- "' in CDR #".$cdr->acctid."\n";
+ or next;
+ # silently skip calls that are neither interstate nor intrastate
+ #or die "unknown rated_ratename '" .$cdr->rated_ratename.
+ # "' in CDR #".$cdr->acctid."\n";
$subtotal->{count}++;
$subtotal->{duration} += $object->rated_seconds;
$subtotal->{amount} += $object->rated_price;
$subtotal->{count}++;
$subtotal->{duration} += $object->rated_seconds;
$subtotal->{amount} += $object->rated_price;