summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Davis <jeremyd@freeside.biz>2014-05-08 13:35:06 -0400
committerJeremy Davis <jeremyd@freeside.biz>2014-05-08 13:35:06 -0400
commitaac2632d374375480440cde44f5e27392d0a83e5 (patch)
tree8fc9fe12c1617c597030d1acdf5ce2ea89e3205b
parentaf263d381228524dedebcaa19c7440e3acad4e3c (diff)
#29086 Order new package link on customer basic tab
-rw-r--r--FS/FS/Conf.pm7
-rwxr-xr-xhttemplate/view/cust_main.cgi4
2 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 08bd6a750..36bfa43bb 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -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.',
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 3ca3d264f..6f2bb80bc 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -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'));