projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4da27fb
)
fix agent-virt of invoice_from and company_name on statement send, RT#74943, RT#34078
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 7 Mar 2017 04:28:07 +0000
(20:28 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 7 Mar 2017 04:28:07 +0000
(20:28 -0800)
httemplate/misc/email-customer-statement.html
patch
|
blob
|
history
diff --git
a/httemplate/misc/email-customer-statement.html
b/httemplate/misc/email-customer-statement.html
index
aa65b05
..
43141cf
100644
(file)
--- a/
httemplate/misc/email-customer-statement.html
+++ b/
httemplate/misc/email-customer-statement.html
@@
-56,7
+56,7
@@
my $post_search_hook = sub {
# set from/subject/html_body based on date range
$cgi->param('from',
# set from/subject/html_body based on date range
$cgi->param('from',
- $opt{'conf'}->config('invoice_from')
+ $opt{'conf'}->config('invoice_from'
, $cust_main->agentnum
)
);
# shortcut for common text
);
# shortcut for common text
@@
-66,18
+66,14
@@
my $post_search_hook = sub {
($cgi->param('end_date') ? ' through ' : '') .
$cgi->param('end_date');
($cgi->param('end_date') ? ' through ' : '') .
$cgi->param('end_date');
- $cgi->param('subject',
- $opt{'conf'}->config('company_name') .
- ' statement for ' .
- $summary_text
- );
+ my $company_name = $opt{'conf'}->config('company_name', $cust_main->agentnum);
+
+ my $subject = "$company_name statement for $summary_text";
+
+
$cgi->param('subject', $subject
);
$cgi->param('html_body',
$cgi->param('html_body',
- '<P>' .
- $opt{'conf'}->config('company_name') .
- ' statement of charges and payments for ' .
- $summary_text .
- "</P>" .
+ "<P>$subject</P>".
include('/elements/customer-statement.html',
'history' => [
$cust_main->payment_history(
include('/elements/customer-statement.html',
'history' => [
$cust_main->payment_history(