refine disable_previous_balance behavior to show new charges only, #35222, #37396
[freeside.git] / FS / FS / detail_format / source_default.pm
1 package FS::detail_format::source_default;
2
3 use strict;
4 use base qw(FS::detail_format);
5
6 sub name { 'Default with source' }
7
8 sub header_detail { 'Caller,Date,Time,Number,Destination,Duration,Price' }
9
10 sub columns {
11   my $self = shift;
12   my $cdr = shift;
13   (
14     $cdr->src,
15     $self->time2str_local($self->date_format, $cdr->startdate),
16     $self->time2str_local('%r', $cdr->startdate),
17     ($cdr->rated_pretty_dst || $cdr->dst),
18     $cdr->rated_regionname,
19     $self->duration($cdr),
20     $self->price($cdr),
21   )
22 }
23
24 1;