projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39dc3ac
)
include agent name in CSV format, #17053
author
Mark Wells
<mark@freeside.biz>
Wed, 11 Apr 2012 01:03:37 +0000
(18:03 -0700)
committer
Mark Wells
<mark@freeside.biz>
Wed, 11 Apr 2012 01:03:37 +0000
(18:03 -0700)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
945771e
..
255ce60
100644
(file)
--- 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,