diff options
author | ivan <ivan> | 2009-08-11 02:34:57 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-08-11 02:34:57 +0000 |
commit | 54538d4a7445f5315e27cb8ff44b5ddc4160ee88 (patch) | |
tree | 92a4ef5a0581e40ec5d713c5752073618c07bd7d /FS | |
parent | ae898cc8e6de40fbecb30c973f91cd955434b159 (diff) |
add $company_name and $company_address to decline template, RT#5869
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main.pm | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 8cd03eb..b865789 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4221,7 +4221,13 @@ sub realtime_bop { $template->compile() or return "($perror) can't compile template: $Text::Template::ERROR"; - my $templ_hash = { error => $transaction->error_message }; + my $templ_hash = { + 'company_name' => + scalar( $conf->config('company_name', $self->agentnum ) ), + 'company_address' => + join("\n", $conf->config('company_address', $self->agentnum ) ), + 'error' => $transaction->error_message, + }; my $error = send_email( 'from' => $conf->config('invoice_from', $self->agentnum ), @@ -5401,7 +5407,13 @@ sub _realtime_bop_result { $template->compile() or return "($perror) can't compile template: $Text::Template::ERROR"; - my $templ_hash = { error => $transaction->error_message }; + my $templ_hash = { + 'company_name' => + scalar( $conf->config('company_name', $self->agentnum ) ), + 'company_address' => + join("\n", $conf->config('company_address', $self->agentnum ) ), + 'error' => $transaction->error_message, + }; my $error = send_email( 'from' => $conf->config('invoice_from', $self->agentnum ), |