diff options
author | Jeremy Davis <jeremyd@freeside.biz> | 2014-05-08 13:35:06 -0400 |
---|---|---|
committer | Jeremy Davis <jeremyd@freeside.biz> | 2014-05-08 13:35:06 -0400 |
commit | aac2632d374375480440cde44f5e27392d0a83e5 (patch) | |
tree | 8fc9fe12c1617c597030d1acdf5ce2ea89e3205b | |
parent | af263d381228524dedebcaa19c7440e3acad4e3c (diff) |
#29086 Order new package link on customer basic tab
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rwxr-xr-x | httemplate/view/cust_main.cgi | 4 |
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')); |