[freeside-commits] branch master updated. ab5177ddab29e7fca9f64144a0c1ed104ead3ead

Ivan ivan at 420.am
Mon Sep 21 18:25:58 PDT 2015


The branch, master has been updated
       via  ab5177ddab29e7fca9f64144a0c1ed104ead3ead (commit)
      from  376794a00e837317e35fefd61a29ab58c0303b35 (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 ab5177ddab29e7fca9f64144a0c1ed104ead3ead
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Sep 21 18:25:57 2015 -0700

    import BWGroupNumber as charged_party when accountcode is empty, RT#27946

diff --git a/FS/FS/cdr/amcom.pm b/FS/FS/cdr/amcom.pm
index 36be8d8..97ab402 100644
--- 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';
     },
-    '',           # 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

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr/amcom.pm |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list