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