diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 03:23:27 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 03:23:27 -0700 |
| commit | 4cd40172ccbfce9cfa49bff5a6338f3c6c978f4b (patch) | |
| tree | dd43902ce7adb0c97674587dbc8b4aca944e953a /httemplate/edit | |
| parent | 206197352809cdbb78134c1e59905f05a2bfca69 (diff) | |
move services between packages, RT#22619
Diffstat (limited to 'httemplate/edit')
| -rw-r--r-- | httemplate/edit/bulk-cust_svc-pkgnum.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/httemplate/edit/bulk-cust_svc-pkgnum.html b/httemplate/edit/bulk-cust_svc-pkgnum.html new file mode 100644 index 000000000..a3437292f --- /dev/null +++ b/httemplate/edit/bulk-cust_svc-pkgnum.html @@ -0,0 +1,47 @@ +<& /elements/header-popup.html, 'Move services' &> + +Select the target package and the services to be moved.<BR><BR> + +<FORM ACTION="<%$p%>edit/process/bulk-cust_svc-pkgnum.html" METHOD=POST> + +<& /view/cust_main/packages.html, $cust_main, + no_links => 1, + before_pkg_callback => sub { + my $cust_pkg = shift; + '<INPUT TYPE="radio" NAME="pkgnum" VALUE="'. $cust_pkg->pkgnum. '">'; + }, + before_svc_callback => sub { + my $cust_svc = shift; + my $nameid = 'svcnum'. $cust_svc->svcnum; + '<TABLE CELLSPACING=0 CELLPADDING=0><TR><TD>'. + qq( <INPUT TYPE="checkbox" NAME="$nameid" ID="$nameid" VALUE="1"> ). + '</TD><TD> </TD><TD>'; + }, + after_svc_callback => sub { + #my $cust_svc = shift; + '</TD></TR></TABLE>'; + }, +&> + +<BR> +<INPUT TYPE="submit" VALUE="Move services"> + +</FORM> + + </BODY> +</HTML> +<%init> + +my $curuser = $FS::CurrentUser::CurrentUser; +die "access denied" unless $curuser->access_right('Bulk move customer services'); + +$cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum'; +my $custnum = $1; + +my $cust_main = qsearchs({ + 'table' => 'cust_main', + 'hashref' => { 'custnum' => $custnum }, + 'extra_sql' => ' AND '. $curuser->agentnums_sql, +}) or die 'unknown customer'; + +</%init> |
