diff options
author | mark <mark> | 2011-04-12 20:57:12 +0000 |
---|---|---|
committer | mark <mark> | 2011-04-12 20:57:12 +0000 |
commit | 24784b1f4768f4ae7b82995bdadd84ee7cac04da (patch) | |
tree | 3c70a069ef15889530bd0790899d38fd53a7e99a /FS | |
parent | 68307cb7333d05d86231baafdf9dd0a688e012a0 (diff) |
make company_phonenum available to templates, #12363
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_bill.pm | 1 | ||||
-rw-r--r-- | FS/FS/msg_template.pm | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 1ffb94a6c..914871d46 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2517,6 +2517,7 @@ sub print_generic { #invoice from info 'company_name' => scalar( $conf->config('company_name', $agentnum) ), 'company_address' => join("\n", $conf->config('company_address', $agentnum) ). "\n", + 'company_phonenum'=> $conf->config('company_phonenum', $agentnum), 'returnaddress' => $returnaddress, 'agent' => &$escape_function($cust_main->agent->agent), diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 0b9746a03..73284d1e5 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -387,6 +387,9 @@ sub substitutions { [ company_address => sub { $conf->config('company_address', shift->agentnum) } ], + [ company_phonenum => sub { + $conf->config('company_phonenum', shift->agentnum) + } ], ], # next_bill_date 'cust_pkg' => [qw( |