diff options
Diffstat (limited to 'httemplate/view/cust_main/payment_history.html')
| -rw-r--r-- | httemplate/view/cust_main/payment_history.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index d79d84365..69571c78e 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -151,10 +151,19 @@ %# invoice reports, combined statement % if ( $curuser->access_right('List invoices') ) { -% if ( $num_cust_bill > 0 ) { - <A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><% - mt('Download typeset statement PDF') |h %></A> +% if ( $curuser->access_right('Resend invoices') +% && $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 +% && $curuser->access_right('View legacy typeset statements') +% ) { + <A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><% + mt('Download typeset statement PDF') |h %></A> + <BR> % } <A HREF="<% $p %>search/report_cust_bill.html?custnum=<% $custnum %>"><% mt('Invoice reports') |h %></A> % } |
