add skip_dcontext_suffix to skip CDRs with dcontext ending in a definable string...
[freeside.git] / FS / FS / detail_format / basic_upstream_dst_regionname.pm
1 package FS::detail_format::basic_upstream_dst_regionname;
2
3 use strict;
4 use base qw(FS::detail_format);
5
6 sub name { 'Basic with upstream destination name' }
7
8 sub header_detail { 'Date/Time,Called Number,Destination,Min/Sec,Price' }
9
10 sub columns {
11   my $self = shift;
12   my $cdr = shift;
13   (
14     $self->time2str_local('%d %b - %I:%M %p', $cdr->startdate),
15     $cdr->dst,
16     $cdr->upstream_dst_regionname,
17     $self->duration($cdr),
18     $self->price($cdr),
19   )
20 }
21
22 1;