X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fdetail_format%2Faccountcode_default.pm;fp=FS%2FFS%2Fdetail_format%2Faccountcode_default.pm;h=031cc4b90c51a46b0df2f3ffd42f04f7adabc624;hb=0d16979c948a691c95ef92f4ac7a2921a9e8c998;hp=0000000000000000000000000000000000000000;hpb=c9c9f28394024d03f78c61b37811e4816aa73c9a;p=freeside.git diff --git a/FS/FS/detail_format/accountcode_default.pm b/FS/FS/detail_format/accountcode_default.pm new file mode 100644 index 000000000..031cc4b90 --- /dev/null +++ b/FS/FS/detail_format/accountcode_default.pm @@ -0,0 +1,25 @@ +package FS::detail_format::accountcode_default; + +use strict; +use parent qw(FS::detail_format); +use Date::Format qw(time2str); + +sub name { 'Default with accountcode' } + +sub header_detail { 'Date,Time,Account,Number,Destination,Duration,Price' } + +sub columns { + my $self = shift; + my $cdr = shift; + ( + time2str($self->date_format, $cdr->startdate), + time2str('%r', $cdr->startdate), + $cdr->accountcode, + ($cdr->rated_pretty_dst || $cdr->dst), + $cdr->rated_regionname, + $self->duration($cdr), + $self->price($cdr), + ) +} + +1;