From: Mark Wells Date: Wed, 11 Apr 2012 01:03:37 +0000 (-0700) Subject: include agent name in CSV format, #17053 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9a4a158c7f3a0f9d2333e867f6f716ba0aef43e9 include agent name in CSV format, #17053 --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 945771e0d..255ce6009 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2006,7 +2006,7 @@ sub print_csv { ); } elsif ( lc($opt{'format'}) eq 'oneline' ) { #name? - + my ($previous_balance) = $self->previous; my $totaldue = sprintf('%.2f', $self->owed + $previous_balance); my @items = map { @@ -2017,6 +2017,7 @@ sub print_csv { $csv->combine( $cust_main->agentnum, + $cust_main->agent->agent, $self->custnum, $cust_main->first, $cust_main->last,