diff options
author | ivan <ivan> | 2009-03-17 12:01:25 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-03-17 12:01:25 +0000 |
commit | 4445165860112be241b1a51c50436ad0828a297a (patch) | |
tree | 293eda9178d1339a41f5bb8cc5e76de2f91f33d4 /FS/FS/cust_bill.pm | |
parent | 455342c5657299275c14741ad459ff2ce4f03559 (diff) |
agent-virt invoice_*{notes,footer,smallfooter,coupon}, RT#5025
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r-- | FS/FS/cust_bill.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index c8384c009..6fac0a946 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1990,15 +1990,18 @@ sub print_generic { $invoice_data{'previous_balance'} = sprintf("%.2f", $pr_total); $invoice_data{'balance'} = sprintf("%.2f", $balance_due); + my $agentnum = $self->cust_main->agentnum; + #do variable substitution in notes, footer, smallfooter foreach my $include (qw( notes footer smallfooter coupon )) { my $inc_file = $conf->key_orbase("invoice_${format}$include", $template); my @inc_src; - if ( $conf->exists($inc_file) && length( $conf->config($inc_file) ) ) { + if ( $conf->exists($inc_file, $agentnum) + && length( $conf->config($inc_file, $agentnum) ) ) { - @inc_src = $conf->config($inc_file); + @inc_src = $conf->config($inc_file, $agentnum); } else { @@ -2010,7 +2013,7 @@ sub print_generic { s/--\@\]/$delimiters{$format}[1]/g; $_; } - &$convert_map( $conf->config($inc_file) ); + &$convert_map( $conf->config($inc_file, $agentnum) ); } |