#29086 Order new package link on customer basic tab
authorJeremy Davis <jeremyd@freeside.biz>
Thu, 8 May 2014 17:35:06 +0000 (13:35 -0400)
committerJeremy Davis <jeremyd@freeside.biz>
Thu, 8 May 2014 17:35:06 +0000 (13:35 -0400)
FS/FS/Conf.pm
httemplate/view/cust_main.cgi

index 08bd6a7..36bfa43 100644 (file)
@@ -3889,6 +3889,13 @@ and customer address. Include units.',
   },
 
   {
+    'key'         => 'cust_main-enable_order_package',
+    'section'     => 'UI',
+    'description' => 'Display order new package on the basic tab',
+    'type'        => 'checkbox',
+  },
+
+  {
     'key'         => 'cust_main-edit_calling_list_exempt',
     'section'     => 'UI',
     'description' => 'Display the "calling_list_exempt" checkbox on customer edit.',
index 3ca3d26..6f2bb80 100755 (executable)
@@ -135,6 +135,10 @@ function areyousure(href, message) {
 % }
 <% $email_link || '' %>
 
+% if ( $curuser->access_right('Order customer package') && $conf->exists('cust_main-enable_order_package') ) {
+  | <& /elements/order_pkg_link.html, 'cust_main'=>$cust_main &>
+% }
+
 % if ( $conf->config('cust_main-external_links') ) {
     <% $br++ ? ' | ' : '' %>
 %   my @links = split(/\n/, $conf->config('cust_main-external_links'));