[freeside-commits] branch master updated. 4716b68d53f303a7a1b4c9702f02a097fee2b1c0
Jeremy Davis
jeremyd at 420.am
Thu Oct 30 08:02:09 PDT 2014
The branch, master has been updated
via 4716b68d53f303a7a1b4c9702f02a097fee2b1c0 (commit)
from b3e1b5efd657b952a441728f0ee6f88c03263fef (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4716b68d53f303a7a1b4c9702f02a097fee2b1c0
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Oct 30 08:09:19 2014 -0400
Ticket #8137 Broadsoft toll-free changes
diff --git a/FS/FS/cdr/broadsoft.pm b/FS/FS/cdr/broadsoft.pm
index 21b373c..b5d75f1 100644
--- a/FS/FS/cdr/broadsoft.pm
+++ b/FS/FS/cdr/broadsoft.pm
@@ -37,7 +37,12 @@ use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
_cdr_date_parser_maker('answerdate'), # 13: answerTime
_cdr_date_parser_maker('enddate'), # 14: releaseTime
skip(17),
- 'accountcode', # 32: group
+ sub { my($cdr, $accountcode) = @_;
+ if ($cdr->is_tollfree){
+ $cdr->set('accountcode', $cdr->dst);
+ } else {
+ $cdr->set('accountcode', $accountcode);
+ }},
],
);
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr/broadsoft.pm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list