diff options
| author | Mark Wells <mark@freeside.biz> | 2012-11-06 13:24:13 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-11-06 13:24:13 -0800 |
| commit | 4f188b96f282c21f027c936f18f5d6fb974cb497 (patch) | |
| tree | 09c6fd55839b873b8fa0b9a00f80f5f744d2e97c | |
| parent | abb6c318d73b1ae269bfe650c377d4816f84e066 (diff) | |
oneline CSV format: add previous balance and due date, #19741
| -rw-r--r-- | FS/FS/cust_bill.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 0823d480e..955d76773 100644 --- 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, ); |
