[freeside-commits] branch FREESIDE_3_BRANCH updated. 25f8f30663974eddec8718386f1e5edc955d9af4
Jeremy Davis
jeremyd at 420.am
Thu Oct 30 08:04:19 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via 25f8f30663974eddec8718386f1e5edc955d9af4 (commit)
from 4e25bd8f9404fa4ff28d3d75e6a0a7453678407c (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 25f8f30663974eddec8718386f1e5edc955d9af4
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Thu Oct 30 08:11:43 2014 -0400
Ticket #8137 Broadsoft toll-free changes
diff --git a/FS/FS/cdr/broadsoft.pm b/FS/FS/cdr/broadsoft.pm
index 192c050..9477351 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