diff options
author | Mark Wells <mark@freeside.biz> | 2016-08-16 20:56:07 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-08-16 20:56:13 -0700 |
commit | 13f66d3743bbb7be4fb87854636598aae0934815 (patch) | |
tree | db6c90194afd5a74dca8695a0122ea8539a59535 /FS/FS/cdr.pm | |
parent | f10cc704ae52f6d1982e50a4b9a00385a40fa19f (diff) |
respect granularity settings for display of inbound call duration, #71715
Diffstat (limited to 'FS/FS/cdr.pm')
-rw-r--r-- | FS/FS/cdr.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index d3d62e0..155090d 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -507,8 +507,9 @@ sub set_status_and_rated_price { rated_price => $rated_price, status => $status, }); - $term->rated_seconds($opt{rated_seconds}) if exists($opt{rated_seconds}); - $term->rated_minutes($opt{rated_minutes}) if exists($opt{rated_minutes}); + foreach (qw(rated_seconds rated_minutes rated_granularity)) { + $term->set($_, $opt{$_}) if exists($opt{$_}); + } $term->svcnum($svcnum) if $svcnum; return $term->insert; |