[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 4f188b96f282c21f027c936f18f5d6fb974cb497
Mark Wells
mark at 420.am
Tue Nov 6 13:24:31 PST 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via 4f188b96f282c21f027c936f18f5d6fb974cb497 (commit)
from abb6c318d73b1ae269bfe650c377d4816f84e066 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4f188b96f282c21f027c936f18f5d6fb974cb497
Author: Mark Wells <mark at freeside.biz>
Date: Tue Nov 6 13:24:13 2012 -0800
oneline CSV format: add previous balance and due date, #19741
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 0823d48..955d767 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,
);
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_bill.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list