add skip_dcontext_suffix to skip CDRs with dcontext ending in a definable string...
[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
6 sub name { 'Simple with source' }
7
8 sub header_detail { 'Date,Time,Called From,Account,Duration,Price' }
9
10 sub columns {
11   my $self = shift;
12   my $cdr = shift;
13   (
14     $self->time2str_local($self->date_format, $cdr->startdate),
15     $self->time2str_local('%r', $cdr->startdate),
16     $cdr->src,
17     $cdr->accountcode,
18     $self->duration($cdr),
19     $self->price($cdr),
20   )
21 }
22
23 1;