"use base" for compatibility
[freeside.git] / FS / FS / detail_format / simple.pm
1 package FS::detail_format::simple;
2
3 use strict;
4 use base qw(FS::detail_format);
5 use Date::Format qw(time2str);
6
7 sub name { 'Simple' }
8
9 sub header_detail { 'Date,Time,Name,Destination,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->userfield,
18     $cdr->dst,
19     $self->duration($cdr),
20     $self->price($cdr),
21   )
22 }
23
24 1;