refine disable_previous_balance behavior to show new charges only, #35222, #37396
[freeside.git] / FS / FS / detail_format / simple2.pm
1 package FS::detail_format::simple2;
2
3 use strict;
4 use base qw(FS::detail_format);
5
6 sub name { 'Simple with source' }
7
8 sub header_detail { 'Date,Time,Name,Called From,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->userfield,
17     $cdr->src,
18     $cdr->dst,
19     $self->duration($cdr),
20     $self->price($cdr),
21   )
22 }
23
24 1;