projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae898cc
)
add $company_name and $company_address to decline template, RT#5869
author
ivan
<ivan>
Tue, 11 Aug 2009 02:34:57 +0000
(
02:34
+0000)
committer
ivan
<ivan>
Tue, 11 Aug 2009 02:34:57 +0000
(
02:34
+0000)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
8cd03eb
..
b865789
100644
(file)
--- 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";
$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 ),
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";
$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 ),
my $error = send_email(
'from' => $conf->config('invoice_from', $self->agentnum ),