[freeside-commits] freeside/httemplate/misc delete-cust_pkg_discount.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sat Jan 30 15:00:27 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv11953/httemplate/misc
Added Files:
delete-cust_pkg_discount.html
Log Message:
discounts, RT#6679
--- NEW FILE: delete-cust_pkg_discount.html ---
% if ( $error ) {
% errorpage($error);
% } else {
% my $frag = "cust_pkg". $cust_pkg->pkgnum;
% my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/
% ? ''
% : ';show=packages';
<% $cgi->redirect($p. "view/cust_main.cgi?custnum=$custnum$show;fragment=$frag#$frag" ) %>
% }
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
#XXX ACL to remove discounts
#die "access denied"
# unless $curuser->access_right('Delete invoices');
#untaint pkgdiscountnum
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal crednum";
my $pkgdiscountnum = $1;
my $cust_pkg_discount =
qsearchs('cust_pkg_discount', {'pkgdiscountnum'=>$pkgdiscountnum});
my $cust_pkg = $cust_pkg_discount->cust_pkg;
my $custnum = $cust_pkg->custnum;
my $error = $cust_pkg_discount->delete;
</%init>
More information about the freeside-commits
mailing list