4 % my $frag = "cust_pkg". $cust_pkg->pkgnum;
5 % my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/
8 <% $cgi->redirect($p. "view/cust_main.cgi?custnum=$custnum$show;fragment=$frag#$frag" ) %>
12 my $curuser = $FS::CurrentUser::CurrentUser;
14 #XXX ACL to remove discounts
16 # unless $curuser->access_right('Delete invoices');
18 #untaint pkgdiscountnum
19 my($query) = $cgi->keywords;
20 $query =~ /^(\d+)$/ || die "Illegal crednum";
21 my $pkgdiscountnum = $1;
23 my $cust_pkg_discount =
24 qsearchs('cust_pkg_discount', {'pkgdiscountnum'=>$pkgdiscountnum});
25 my $cust_pkg = $cust_pkg_discount->cust_pkg;
26 my $custnum = $cust_pkg->custnum;
28 $cust_pkg_discount->disabled('Y');
30 my $error = $cust_pkg_discount->replace;