diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-11-11 20:39:43 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-11-11 20:39:43 -0800 |
commit | 211526de149104c12e1d61155fdd9cf0d2958775 (patch) | |
tree | 316fb5ce460da1ccc6a93ce545fe8912ab025d44 | |
parent | b8201540654e1e785a00d2f60f5fcae5f0cd6ddc (diff) |
add billco-account_num option, RT#22934
-rw-r--r-- | FS/FS/cust_bill.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 4e34ef47b..d0e7048b7 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 |