From c82d349f864e6bd9f96fd1156903bc1f7193a203 Mon Sep 17 00:00:00 2001 From: cvs2git Date: Mon, 27 Dec 2010 00:04:45 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'. --- httemplate/misc/change_pkg.cgi | 76 ------------------------------------------ 1 file changed, 76 deletions(-) delete mode 100755 httemplate/misc/change_pkg.cgi (limited to 'httemplate/misc/change_pkg.cgi') diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi deleted file mode 100755 index ec10b85cf..000000000 --- a/httemplate/misc/change_pkg.cgi +++ /dev/null @@ -1,76 +0,0 @@ -<% include('/elements/header-popup.html', "Change Package") %> - -<% include('/elements/error.html') %> - -
- - -<% ntable('#cccccc') %> - - - Current package - - <% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><% $part_pkg->pkg |h %> - <% $part_pkg->comment |h %> - - - - <% include('/elements/tr-select-cust-part_pkg.html', - 'pre_label' => 'New', - 'curr_value' => scalar($cgi->param('pkgpart')), - 'classnum' => $part_pkg->classnum, - 'cust_main' => $cust_main, - #'extra_sql' => ' AND pkgpart != '. $cust_pkg->pkgpart, - ) - %> - - <% include('/elements/tr-select-cust_location.html', - 'cgi' => $cgi, - 'cust_main' => $cust_main, - ) - %> - - - -<% include( '/elements/standardize_locations.html', - 'form' => "OrderPkgForm", - 'onlyship' => 1, - 'no_company' => 1, - 'callback' => 'document.OrderPkgForm.submit();', - ) -%> - -
- - -
- - - -<%init> - -my $conf = new FS::Conf; - -my $curuser = $FS::CurrentUser::CurrentUser; - -die "access denied" - unless $curuser->access_right('Change customer package'); - -my $pkgnum = scalar($cgi->param('pkgnum')); -$pkgnum =~ /^(\d+)$/ or die "illegal pkgnum $pkgnum"; -$pkgnum = $1; - -my $cust_pkg = - qsearchs({ - 'table' => 'cust_pkg', - 'addl_from' => 'LEFT JOIN cust_main USING ( custnum )', - 'hashref' => { 'pkgnum' => $pkgnum }, - 'extra_sql' => ' AND '. $curuser->agentnums_sql, - }) or die "unknown pkgnum $pkgnum"; - -my $cust_main = $cust_pkg->cust_main - or die "can't get cust_main record for custnum ". $cust_pkg->custnum. - " ( pkgnum ". cust_pkg->pkgnum. ")"; - -my $part_pkg = $cust_pkg->part_pkg; - - -- cgit v1.2.1