1 <& /elements/header-popup.html, "Change Sales Person" &>
2 <& /elements/error.html &>
4 <FORM ACTION="<% $p %>edit/process/cust_pkg_salesnum.html" METHOD=POST>
5 <INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
6 <& /elements/table-grid.html, 'bgcolor' => '#cccccc', 'cellpadding' => 2 &>
9 <TH ALIGN="right">Current package </TH>
11 <% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->comment |h %>
15 <& /elements/tr-select-sales.html,
16 #'field' => 'salesnum',
17 'curr_value' => $cust_pkg->salesnum,
24 <INPUT NAME="submit" TYPE="submit" VALUE="Change">
32 #some false laziness w/misc/change_pkg.cgi
34 my $conf = new FS::Conf;
36 my $curuser = $FS::CurrentUser::CurrentUser;
39 unless $curuser->access_right('Change customer package');
41 my $pkgnum = scalar($cgi->param('pkgnum'));
42 $pkgnum =~ /^(\d+)$/ or die "illegal pkgnum $pkgnum";
45 my $cust_pkg = FS::cust_pkg->by_key($pkgnum) or die "unknown pkgnum $pkgnum";
47 my $part_pkg = $cust_pkg->part_pkg;