[freeside-commits] branch FREESIDE_2_3_BRANCH updated. a55ae991cd3ce8a7f989da42597d569300b8776e

Mark Wells mark at 420.am
Thu Mar 8 20:31:20 PST 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  a55ae991cd3ce8a7f989da42597d569300b8776e (commit)
      from  1534a6ede9b49f7c268cc58c172ca7044ad4b4b7 (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 a55ae991cd3ce8a7f989da42597d569300b8776e
Author: Mark Wells <mark at freeside.biz>
Date:   Thu Mar 8 19:27:24 2012 -0800

    "simple with accountcode" CDR format, #16348

diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index d7a4fbd..3e89f55 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -553,6 +553,10 @@ my %export_names = (
     'invoice_header' => "Date,Time,Called From,Destination,Duration,Price",
                        #"Date,Time,Name,Called From,Destination,Duration,Price",
   },
+  'accountcode_simple' => {
+    'name'           => 'Simple with accountcode',
+    'invoice_header' => "Date,Time,Called From,Account,Duration,Price",
+  },
   'basic' => {
     'name'           => 'Basic',
     'invoice_header' => "Date/Time,Called Number,Min/Sec,Price",
@@ -646,6 +650,14 @@ sub export_formats {
       #sub { sprintf('%.3f', shift->upstream_price ) }, #PRICE
       $price_sub,
     ],
+    'accountcode_simple' => [
+      sub { time2str($date_format, shift->calldate_unix ) },   #DATE
+      sub { time2str('%r', shift->calldate_unix ) },   #TIME
+      'src',                                           #called from
+      'accountcode',                                   #NUMBER_DIALED
+      $duration_sub,                                   #DURATION
+      $price_sub,
+    ],
     'sum_duration' => [ 
       # for summary formats, the CDR is a fictitious object containing the 
       # total billsec and the phone number of the service

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

Summary of changes:
 FS/FS/cdr.pm |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list