diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-28 15:42:43 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-28 15:42:43 -0600 |
commit | 2f3fd5cbfdec082d780f79b1ff9fab07a0c832ce (patch) | |
tree | 254077e08f70a56f1a86a1fcd387d186c0bb85bb /FS | |
parent | 0cb1b7d0916777dacdfd7c7f905e0bca03a5dfd9 (diff) |
RT#39638: VoIP Usage cost reporting [bug fixes/cleanup]
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cdr.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index e40b0921a..8ccf7af63 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -469,9 +469,9 @@ Sets the status and rated price. Available options are: inbound, rated_pretty_dst, rated_regionname, rated_seconds, rated_minutes, rated_granularity, rated_ratedetailnum, -rated_classnum, rated_ratename, and set_rate_cost (if true, will set -a recalculated L</rate_cost> in the rated_cost field after the other -fields are set; does not work with inbound.) +rated_classnum, rated_ratename. If rated_ratedetailnum is provided, +will also set a recalculated L</rate_cost> in the rated_cost field +after the other fields are set (does not work with inbound.) If there is an error, returns the error, otherwise returns false. @@ -509,7 +509,7 @@ sub set_status_and_rated_price { qw( pretty_dst regionname seconds minutes granularity ratedetailnum classnum ratename ); $self->svcnum($svcnum) if $svcnum; - $self->rated_cost($self->rate_cost) if $opt{'set_rate_cost'}; + $self->rated_cost($self->rate_cost) if $opt{'rated_ratedetailnum'}; return $self->replace(); @@ -1010,7 +1010,6 @@ sub rate_prefix { 'rated_ratedetailnum' => $rate_detail->ratedetailnum, 'rated_classnum' => $rate_detail->classnum, #rated_ratedetailnum? 'rated_ratename' => $ratename, #not rate_detail - Intrastate/Interstate - 'set_rate_cost' => 1, ); } |