projects
/
freeside.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
detail_format
/
basic.pm
1
package FS::detail_format::basic;
2
3
use strict;
4
use base qw(FS::detail_format);
5
use Date::Format qw(time2str);
6
7
sub name { 'Basic' }
8
9
sub header_detail { 'Date/Time,Called Number,Min/Sec,Price' }
10
11
sub columns {
12
my $self = shift;
13
my $cdr = shift;
14
(
15
time2str('%d %b - %I:%M %p', $cdr->startdate),
16
$cdr->dst,
17
$self->duration($cdr),
18
$self->price($cdr),
19
)
20
}
21
22
1;