From 4cd40172ccbfce9cfa49bff5a6338f3c6c978f4b Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 4 Jun 2013 03:23:27 -0700 Subject: move services between packages, RT#22619 --- httemplate/edit/bulk-cust_svc-pkgnum.html | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 httemplate/edit/bulk-cust_svc-pkgnum.html (limited to 'httemplate/edit') 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.

+ +
+ +<& /view/cust_main/packages.html, $cust_main, + no_links => 1, + before_pkg_callback => sub { + my $cust_pkg = shift; + ''; + }, + before_svc_callback => sub { + my $cust_svc = shift; + my $nameid = 'svcnum'. $cust_svc->svcnum; + '
'. + qq( ). + ' '; + }, + after_svc_callback => sub { + #my $cust_svc = shift; + '
'; + }, +&> + +
+ + +
+ + + +<%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'; + + -- cgit v1.2.1