projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb6c31
)
oneline CSV format: add previous balance and due date, #19741
author
Mark Wells
<mark@freeside.biz>
Tue, 6 Nov 2012 21:24:13 +0000
(13:24 -0800)
committer
Mark Wells
<mark@freeside.biz>
Tue, 6 Nov 2012 21:24:13 +0000
(13:24 -0800)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
0823d48
..
955d767
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-2027,6
+2027,7
@@
sub print_csv {
} elsif ( lc($opt{'format'}) eq 'oneline' ) { #name?
my ($previous_balance) = $self->previous;
+ $previous_balance = sprintf('%.2f', $previous_balance);
my $totaldue = sprintf('%.2f', $self->owed + $previous_balance);
my @items = map {
($_->{pkgnum} || ''),
@@
-2051,6
+2052,8
@@
sub print_csv {
$self->invnum,
$self->charged,
$totaldue,
+ $previous_balance,
+ $self->due_date2str("%x"),
@items,
);