summaryrefslogtreecommitdiff
path: root/FS/FS/ClientAPI/MyAccount.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-04-30 17:12:25 -0700
committerMark Wells <mark@freeside.biz>2014-04-30 17:12:25 -0700
commit60784dabbd2b220382eec7bb460640de5a25fbab (patch)
tree93efb052fa9744a96b3db498c058caae02fa7c68 /FS/FS/ClientAPI/MyAccount.pm
parentabfd0a30a2963696b8d6f5962ade955ee57414b2 (diff)
in selfservice display of phone usage, avoid double-counting calls to tollfree numbers, #27186
Diffstat (limited to 'FS/FS/ClientAPI/MyAccount.pm')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index c75a56b17..f21ff54c0 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -1820,6 +1820,7 @@ sub list_svcs {
'inbound' => ( $_ eq 'inbound' ? 1 : 0 ),
'begin' => ($cust_pkg->last_bill || 0),
'nonzero' => 1,
+ 'disable_charged_party' => 1,
);
$hash{$_} = $sum_cdr->hashref;
}
@@ -2103,7 +2104,12 @@ sub _list_cdr_usage {
# we have to return the results all at once...
my($svc_phone, $begin, $end, %opt) = @_;
map [ $_->downstream_csv(%opt, 'keeparray' => 1) ],
- $svc_phone->get_cdrs( 'begin'=>$begin, 'end'=>$end, %opt );
+ $svc_phone->get_cdrs(
+ 'begin'=>$begin,
+ 'end'=>$end,
+ 'disable_charged_party' => 1,
+ %opt
+ );
}
sub list_cdr_usage {