-% if ( $curuser->access_right('Edit customer') ) {
- <A HREF="<% $p %>edit/cust_main.cgi?<% $custnum %>">Edit this customer</A> |
-% }
-
-% if ( $curuser->access_right('Cancel customer')
-% && $cust_main->ncancelled_pkgs
-% ) {
-
- <% include( '/elements/popup_link-cust_main.html',
- { 'action' => $p. 'misc/cancel_cust.html',
- 'label' => 'Cancel this customer',
- 'actionlabel' => 'Confirm Cancellation',
- 'color' => '#ff0000',
- 'cust_main' => $cust_main,
- 'width' => 616, #make room for reasons
- 'height' => 366,
- }
- )
- %> |
-
-% }
-
-% if ( $curuser->access_right('Merge customer') ) {
-
- <% include( '/elements/popup_link-cust_main.html',
- { 'action' => $p. 'misc/merge_cust.html',
- 'label' => 'Merge this customer',
- 'actionlabel' => 'Merge customer',
- #'color' => '#ff0000',
- 'cust_main' => $cust_main,
- 'width' => 480,
- 'height' => 192,
- }
- )
- %> |
-
-% }
-
-% if ( $conf->exists('deletecustomers')
-% && $curuser->access_right('Delete customer')
-% ) {
- <A HREF="<% $p %>misc/delete-customer.cgi?<% $custnum%>">Delete this customer</A> |
-% }
-
-% unless ( $conf->exists('disable_customer_referrals') ) {
- <A HREF="<% $p %>edit/cust_main.cgi?referral_custnum=<% $custnum %>">Refer a new customer</A> |
- <A HREF="<% $p %>search/cust_main.cgi?referral_custnum=<% $custnum %>">View this customer's referrals</A>
-% }