summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-03-26 22:45:32 -0700
committerIvan Kohler <ivan@freeside.biz>2016-03-26 22:45:32 -0700
commit2ab62f031f902a03bb4e3c54e7f47a35acffb5e1 (patch)
tree3f2c89ce0b1ee07756d8af2811565c93d7d72581 /httemplate/view
parent7ec1684c70e24b4b16a903386edd7111212f6212 (diff)
freeside inc. web services for address normalizaion and printing, RT#33849
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/cust_bill.cgi17
1 files changed, 15 insertions, 2 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index 1d5b7675e..97eff2407 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -96,8 +96,18 @@ function areyousure(href, message) {
% }
% if ( $curuser->access_right('Resend invoices') ) {
+ <A HREF="<% $p %>misc/send-invoice.cgi?method=print;<% $link %>"><% mt('Print this invoice') |h %></A>
+% }
+
+% if ( $curuser->access_right('Print and mail invoices') ) {
+ | <& /elements/popup_link.html,
+ 'action' => $p."misc/post_fsinc-invoice.cgi?$link",
+ 'label' => 'Print and mail this invoice online',
+ 'actionlabel' => 'Invoice printing and mailing',
+ &>
+% }
- <A HREF="<% $p %>misc/send-invoice.cgi?method=print;<% $link %>"><% mt('Re-print this invoice') |h %></A>
+% if ( $curuser->access_right('Resend invoices') ) {
% if ( grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ) {
| <A HREF="<% $p %>misc/send-invoice.cgi?method=email;<% $link %>"><% mt('Re-email this invoice') |h %></A>
@@ -107,8 +117,11 @@ function areyousure(href, message) {
| <A HREF="<% $p %>misc/send-invoice.cgi?method=fax;<% $link %>"><% mt('Re-fax this invoice') |h %></A>
% }
- <BR><BR>
+% }
+% if ( $curuser->access_right('Resend invoices')
+% || $curuser->access_right('Print and mail invoices') ) {
+ <BR><BR>
% }
% my $br = 0;