summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authormark <mark>2011-04-12 20:56:48 +0000
committermark <mark>2011-04-12 20:56:48 +0000
commit3714fa41c5306981c9f500df13eea52c72d82545 (patch)
tree000c2ceb1f7d0be9dd546aac01c11a064f8ada8a /FS/FS
parenta2253aacd9b6c142236fb800f1c74b04510000f9 (diff)
make company_phonenum available to templates, #12363
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_bill.pm1
-rw-r--r--FS/FS/msg_template.pm3
2 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index a2754fdc9..fed1066fd 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -2553,6 +2553,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(