[freeside-commits] freeside/httemplate/misc order_pkg.html, 1.9, 1.10
Ivan,,,
ivan at wavetail.420.am
Sat Jan 30 00:55:13 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv11863/httemplate/misc
Modified Files:
order_pkg.html
Log Message:
discounts, RT#6679
Index: order_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/order_pkg.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- order_pkg.html 7 Aug 2009 00:39:14 -0000 1.9
+++ order_pkg.html 30 Jan 2010 08:55:11 -0000 1.10
@@ -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;
More information about the freeside-commits
mailing list