summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-04-27 23:24:15 +0000
committermark <mark>2011-04-27 23:24:15 +0000
commit43fe059594a5f7b21413ea6805eb41d4ed89fa6a (patch)
tree364e4d1953a756af8c72fb397935baa712df59e9
parent68fcc90d8e95f1efe0efe07b2f59e5fab2d8c535 (diff)
new call details format, #12585
-rw-r--r--FS/FS/cdr.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 65ca50b29..3157b6b60 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -541,6 +541,10 @@ my %export_names = (
'name' => 'Default plus accountcode',
'invoice_header' => 'Date,Time,Account,Number,Destination,Duration,Price',
},
+ 'description_default' => {
+ 'name' => 'Default with description field as destination',
+ 'invoice_header' => 'Caller,Date,Time,Number,Destination,Duration,Price',
+ },
);
my %export_formats = ();
@@ -626,8 +630,13 @@ sub export_formats {
'accountcode',
@{ $export_formats{'default'} }[2..5],
];
+ my @default = @{ $export_formats{'default'} };
+ $export_formats{'description_default'} =
+ [ 'src', @default[0..2],
+ sub { my($cdr, %opt) = @_; $cdr->description },
+ @default[4,5] ];
- %export_formats
+ return %export_formats;
}
sub downstream_csv {