[freeside-commits] branch FREESIDE_3_BRANCH updated. b8d345a845640a9744a00c53eb3e61b02dd2f0e4

Jeremy Davis jeremyd at 420.am
Thu May 8 13:26:11 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  b8d345a845640a9744a00c53eb3e61b02dd2f0e4 (commit)
      from  64f4f823955fc738709bfefc0091869cc3cce278 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b8d345a845640a9744a00c53eb3e61b02dd2f0e4
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Thu May 8 13:38:16 2014 -0400

    #29086 Order new package link on customer basic tab

diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index adf5c86..898bb7f 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -3896,6 +3896,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 6167900..cdea49d 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -141,6 +141,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'));

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Conf.pm                 |    7 +++++++
 httemplate/view/cust_main.cgi |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list