projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
376794a
)
import BWGroupNumber as charged_party when accountcode is empty, RT#27946
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 22 Sep 2015 01:25:57 +0000
(18:25 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 22 Sep 2015 01:25:57 +0000
(18:25 -0700)
FS/FS/cdr/amcom.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/amcom.pm
b/FS/FS/cdr/amcom.pm
index
36be8d8
..
97ab402
100644
(file)
--- a/
FS/FS/cdr/amcom.pm
+++ b/
FS/FS/cdr/amcom.pm
@@
-22,8
+22,12
@@
my ($tmp_mday, $tmp_mon, $tmp_year);
my ($cdr, $field, $conf, $hashref) = @_;
$hashref->{skiprow} = 1 unless $field eq 'DCR';
},
my ($cdr, $field, $conf, $hashref) = @_;
$hashref->{skiprow} = 1 unless $field eq 'DCR';
},
- '', # 2. BWGroupID (centrex group)
- '', # 3. BWGroupNumber
+ 'accountcode',# 2. BWGroupID (centrex group)
+ sub { # 3. BWGroupNumber
+ my ($cdr, $field) = @_; #, $conf, $hashref) = @_;
+ $cdr->charged_party($field)
+ if $cdr->accountcode eq '' && $field =~ /^(1800|1300)/;
+ },
'uniqueid', # 4. Record ID
'dcontext', # 5. Call Category (LOCAL, NATIONAL, FREECALL, MOBILE)
sub { # 6. Start Date (DDMMYYYY
'uniqueid', # 4. Record ID
'dcontext', # 5. Call Category (LOCAL, NATIONAL, FREECALL, MOBILE)
sub { # 6. Start Date (DDMMYYYY