X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fdetail_format%2Fsimple.pm;fp=FS%2FFS%2Fdetail_format%2Fsimple.pm;h=cb6b672659356e1cac9c847377cd90485942d141;hb=0d16979c948a691c95ef92f4ac7a2921a9e8c998;hp=0000000000000000000000000000000000000000;hpb=c9c9f28394024d03f78c61b37811e4816aa73c9a;p=freeside.git diff --git a/FS/FS/detail_format/simple.pm b/FS/FS/detail_format/simple.pm new file mode 100644 index 000000000..cb6b67265 --- /dev/null +++ b/FS/FS/detail_format/simple.pm @@ -0,0 +1,24 @@ +package FS::detail_format::simple; + +use strict; +use parent qw(FS::detail_format); +use Date::Format qw(time2str); + +sub name { 'Simple' } + +sub header_detail { 'Date,Time,Name,Destination,Duration,Price' } + +sub columns { + my $self = shift; + my $cdr = shift; + ( + time2str($self->date_format, $cdr->startdate), + time2str('%r', $cdr->startdate), + $cdr->userfield, + $cdr->dst, + $self->duration($cdr), + $self->price($cdr), + ) +} + +1;