summaryrefslogtreecommitdiff
path: root/httemplate/misc/order_pkg.html
diff options
context:
space:
mode:
authorivan <ivan>2010-01-30 08:55:12 +0000
committerivan <ivan>2010-01-30 08:55:12 +0000
commit2d5f9e43a60773a9b079e96c330cb9e0e089800a (patch)
tree999756a0c9f3b1f6db2347925091f7e6d0e54ce5 /httemplate/misc/order_pkg.html
parent76722f634186b9e6f164640700029e6f1bee5722 (diff)
discounts, RT#6679
Diffstat (limited to 'httemplate/misc/order_pkg.html')
-rw-r--r--httemplate/misc/order_pkg.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index a7571ca58..684f94e7c 100644
--- a/httemplate/misc/order_pkg.html
+++ b/httemplate/misc/order_pkg.html
@@ -60,6 +60,10 @@
});
</SCRIPT>
+% if ( $curuser->access_right('Discount customer package') ) {
+ <% include('/elements/tr-select-discount.html') %>
+% }
+
% 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,
@@ -86,8 +90,10 @@
</HTML>
<%init>
+my $curuser = $FS::CurrentUser::CurrentUser;
+
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Order customer package');
+ unless $curuser->access_right('Order customer package');
my $conf = new FS::Conf;