X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Femail-customer-statement.html;h=39c99e515a0b066d9646a21d2b4b8991409b831b;hb=79dc2b72b17acaa6aa19da6cd4f8c1b8a194a794;hp=df95d7fb3a21544e61daea90f10241440c2e7231;hpb=a5148c7aabd33464432f9355d7cddf12c2147054;p=freeside.git diff --git a/httemplate/misc/email-customer-statement.html b/httemplate/misc/email-customer-statement.html index df95d7fb3..39c99e515 100644 --- a/httemplate/misc/email-customer-statement.html +++ b/httemplate/misc/email-customer-statement.html @@ -34,14 +34,14 @@ my $alternate_form = sub { qw( start_date end_date ) ), '', - '', + '', '', ); }; my $post_search_hook = sub { my %opt = @_; - return unless $cgi->param('action') eq 'preview'; + return unless $cgi->param('preview'); my $cust_main = qsearchs('cust_main',$opt{'search'}) or die "Could not find customer"; @@ -69,7 +69,7 @@ my $post_search_hook = sub { $summary_text ); - $cgi->param('html_body', + $cgi->param('body', '

' . $opt{'conf'}->config('company_name') . ' statement of charges and payments for ' . @@ -79,7 +79,7 @@ my $post_search_hook = sub { 'history' => [ $cust_main->payment_history( map { - $_ => parse_datetime($cgi->param($_)) + $_ => parse_datetime(scalar($cgi->param($_))) } qw( start_date end_date ), ),