summaryrefslogtreecommitdiff
path: root/FS/FS/detail_format/basic.pm
blob: c45e926809d0b07443b095895b137ffbe18adfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package FS::detail_format::basic;

use strict;
use base qw(FS::detail_format);

sub name { 'Basic' }

sub header_detail { 'Date/Time,Called Number,Min/Sec,Price' }

sub columns {
  my $self = shift;
  my $cdr = shift;
  (
    $self->time2str_local('%d %b - %I:%M %p', $cdr->startdate),
    $cdr->dst,
    $self->duration($cdr),
    $self->price($cdr),
  )
}

1;