RT#34078: Payment History Report / Statement
[freeside.git] / httemplate / view / cust_main / payment_history.html
index d79d843..e5bcc5c 100644 (file)
 
 %# invoice reports, combined statement
 % if ( $curuser->access_right('List invoices') ) { 
+%   if ( $curuser->access_right('Bulk send customer notices')
+%          && $cust_main->invoicing_list_emailonly ) {
+
+  <A HREF="<% $p %>misc/email-customer-statement.html?table=cust_main;agent_virt_agentnum=<% $cust_main->agentnum %>;custnum=<% $custnum %>"><% mt('Email statement to this customer') |h %></A>
+  <BR>
+
+%   }
 %   if ( $num_cust_bill > 0 ) {
   <A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><%
   mt('Download typeset statement PDF') |h %></A>