X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Femail-customer-statement.html;h=43141cfecd7791f99d193eced7f8189232efaf57;hp=aa65b05db115c5291b1480e54e9bd893ffaf45f2;hb=5efeb63e2fcbbb864278a86bcc4663d4d533eb32;hpb=4da27fb5faa7c5655bed013a8edba61bb9c782c6 diff --git a/httemplate/misc/email-customer-statement.html b/httemplate/misc/email-customer-statement.html index aa65b05db..43141cfec 100644 --- 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', - $opt{'conf'}->config('invoice_from') + $opt{'conf'}->config('invoice_from', $cust_main->agentnum) ); # shortcut for common text @@ -66,18 +66,14 @@ my $post_search_hook = sub { ($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', - '

' . - $opt{'conf'}->config('company_name') . - ' statement of charges and payments for ' . - $summary_text . - "

" . + "

$subject

". include('/elements/customer-statement.html', 'history' => [ $cust_main->payment_history(