diff options
author | levinse <levinse> | 2011-02-21 16:36:40 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-02-21 16:36:40 +0000 |
commit | c48fdd594e7d7cfb7ac0401040f2f37401f39538 (patch) | |
tree | 41279980bec43e12da8eb23eed0746e76c782613 /FS/FS/cdr.pm | |
parent | 5c0d47bfe554a35c8906d97b9fabd9999be4f67e (diff) |
invoice customizations, RT11467
Diffstat (limited to 'FS/FS/cdr.pm')
-rw-r--r-- | FS/FS/cdr.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index 478dcff..b7d7876 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -525,6 +525,10 @@ my %export_names = ( 'invoice_header' => "Date,Time,Called From,Destination,Duration,Price", #"Date,Time,Name,Called From,Destination,Duration,Price", }, + 'basic' => { + 'name' => 'Basic', + 'invoice_header' => "Date/Time,Called Number,Min/Sec,Price", + }, 'default' => { 'name' => 'Default', 'invoice_header' => 'Date,Time,Number,Destination,Duration,Price', @@ -585,6 +589,12 @@ sub export_formats { #sub { sprintf('%.3f', shift->upstream_price ) }, #PRICE sub { my($cdr, %opt) = @_; $opt{money_char}. $opt{charge}; }, #PRICE ], + 'basic' => [ + sub { time2str('%d %b - %I:%M %p', shift->calldate_unix) }, + 'dst', + $duration_sub, + sub { my($cdr, %opt) = @_; $opt{money_char}. $opt{charge}; }, #PRICE + ], 'default' => [ #DATE |