1 <& /elements/header-popup.html, 'Move services' &>
3 Select the target package and the services to be moved.<BR><BR>
5 <FORM ACTION="<%$p%>edit/process/bulk-cust_svc-pkgnum.html" METHOD=POST>
7 <& /view/cust_main/packages.html, $cust_main,
9 before_pkg_callback => sub {
11 '<INPUT TYPE="radio" NAME="pkgnum" VALUE="'. $cust_pkg->pkgnum. '">';
13 before_svc_callback => sub {
15 my $nameid = 'svcnum'. $cust_svc->svcnum;
16 '<TABLE CELLSPACING=0 CELLPADDING=0><TR><TD>'.
17 qq( <INPUT TYPE="checkbox" NAME="$nameid" ID="$nameid" VALUE="1"> ).
18 '</TD><TD> </TD><TD>';
20 after_svc_callback => sub {
21 #my $cust_svc = shift;
27 <INPUT TYPE="submit" VALUE="Move services">
35 my $curuser = $FS::CurrentUser::CurrentUser;
36 die "access denied" unless $curuser->access_right('Bulk move customer services');
38 $cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum';
41 my $cust_main = qsearchs({
42 'table' => 'cust_main',
43 'hashref' => { 'custnum' => $custnum },
44 'extra_sql' => ' AND '. $curuser->agentnums_sql,
45 }) or die 'unknown customer';