[freeside-commits] branch FREESIDE_3_BRANCH updated. 211526de149104c12e1d61155fdd9cf0d2958775
Ivan
ivan at 420.am
Mon Nov 11 20:39:44 PST 2013
The branch, FREESIDE_3_BRANCH has been updated
via 211526de149104c12e1d61155fdd9cf0d2958775 (commit)
from b8201540654e1e785a00d2f60f5fcae5f0cd6ddc (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 211526de149104c12e1d61155fdd9cf0d2958775
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Nov 11 20:39:43 2013 -0800
add billco-account_num option, RT#22934
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 4e34ef4..d0e7048 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1970,14 +1970,15 @@ sub print_csv {
my $time = $opt{'time'} || time;
+ my $tracctnum = ''; #leaking out from billco-specific sections :/
if ( $format eq 'billco' ) {
my $account_num =
$self->conf->config('billco-account_num', $cust_main->agentnum);
- my $tracctnum = $account_num eq 'display_custnum'
- ? $cust_main->display_custnum
- : $opt{'tracctnum'};
+ $tracctnum = $account_num eq 'display_custnum'
+ ? $cust_main->display_custnum
+ : $opt{'tracctnum'};
my $taxtotal = 0;
$taxtotal += $_->{'amount'} foreach $self->_items_tax;
@@ -2232,7 +2233,7 @@ sub print_csv {
$csv->combine(
'', # 1 | N/A-Leave Empty CHAR 2
'', # 2 | N/A-Leave Empty CHAR 15
- $opt{'tracctnum'}, # 3 | Account Number CHAR 15
+ $tracctnum, # 3 | Account Number CHAR 15
$self->invnum, # 4 | Invoice Number CHAR 15
$lineseq++, # 5 | Line Sequence (sort order) NUM 6
$item->{'description'}, # 6 | Transaction Detail CHAR 100
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_bill.pm | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
More information about the freeside-commits
mailing list