projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b820154
)
add billco-account_num option, RT#22934
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 12 Nov 2013 04:39:43 +0000
(20:39 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 12 Nov 2013 04:39:43 +0000
(20:39 -0800)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
4e34ef4
..
d0e7048
100644
(file)
--- 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 $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);
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;
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
$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
$self->invnum, # 4 | Invoice Number CHAR 15
$lineseq++, # 5 | Line Sequence (sort order) NUM 6
$item->{'description'}, # 6 | Transaction Detail CHAR 100