10a28db10dc282fe6e8d44cecdae5984333807dd
[freeside.git] / FS / FS / detail_format / accountcode_simple.pm
1 package FS::detail_format::accountcode_simple;
2
3 use strict;
4 use base qw(FS::detail_format);
5 use Date::Format qw(time2str);
6
7 sub name { 'Simple with source' }
8
9 sub header_detail { 'Date,Time,Called From,Account,Duration,Price' }
10
11 sub columns {
12   my $self = shift;
13   my $cdr = shift;
14   (
15     time2str($self->date_format, $cdr->startdate),
16     time2str('%r', $cdr->startdate),
17     $cdr->src,
18     $cdr->accountcode,
19     $self->duration($cdr),
20     $self->price($cdr),
21   )
22 }
23
24 1;