From ee953407088b8f71cf671aeb88fa6f227a4f109c Mon Sep 17 00:00:00 2001 From: levinse Date: Mon, 25 Apr 2011 04:37:41 +0000 Subject: add waive setup fee upon package order feature, RT12568 --- httemplate/edit/process/quick-cust_pkg.cgi | 1 + httemplate/misc/order_pkg.html | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'httemplate') diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index a6449b880..bf5087c5e 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -95,6 +95,7 @@ my $cust_pkg = new FS::cust_pkg { ? parse_datetime($cgi->param('contract_end')) : '' ), + 'waive_setup' => ( $cgi->param('waive_setup') eq 'Y' ? 'Y' : '' ), #'discountnum_disabled' => scalar($cgi->param('discountnum_disabled')), }; diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 964441aa8..4f511cc36 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -64,6 +64,13 @@ %> % } +% if ( $curuser->access_right('Waive setup fee') ) { + + Waive setup fee + + +% } + % if ( $conf->exists('pkg_referral') ) { <% include('/elements/tr-select-part_referral.html', 'curr_value' => scalar( $cgi->param('refnum') ), #get rid of empty_label first# || $cust_main->refnum, -- cgit v1.2.1