From 942f129f37980d8a2a87be8c3297663ad38298ba Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 3 Nov 2010 00:33:24 +0000 Subject: bulk change package type, RT#9947 --- httemplate/edit/bulk-cust_pkg.html | 62 +++++++++++++++++++++++++++++++ httemplate/edit/process/bulk-cust_pkg.cgi | 9 +++++ 2 files changed, 71 insertions(+) create mode 100644 httemplate/edit/bulk-cust_pkg.html create mode 100644 httemplate/edit/process/bulk-cust_pkg.cgi (limited to 'httemplate/edit') diff --git a/httemplate/edit/bulk-cust_pkg.html b/httemplate/edit/bulk-cust_pkg.html new file mode 100644 index 000000000..ab419215e --- /dev/null +++ b/httemplate/edit/bulk-cust_pkg.html @@ -0,0 +1,62 @@ +<% include('/elements/header-popup.html', 'Bulk package change') %> + +<% include('/elements/init_overlib.html') %> + +<% include('/elements/progress-init.html', + 'OneTrueForm', + [qw( old_pkgpart new_pkgpart keep_dates)], + 'process/bulk-cust_pkg.cgi', + $p.'browse/part_pkg.cgi', + ) +%> + + +
+% #false laziness with bulk-cust_svc.html +% $cgi->param('pkgpart') =~ /^(\d+)$/ +% or die "illegal pkgpart: ". $cgi->param('pkgpart'); +% +% my $old_pkgpart = $1; +% my $src_part_pkg = qsearchs('part_pkg', { 'pkgpart' => $old_pkgpart } ) +% or die "unknown pkgpart: $old_pkgpart"; +% + + + +Change <% $src_part_pkg->pkg_comment %>
+ +to new package definition + +
+
+ Preserve all billing dates +
+
+ + + +
+ +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + + diff --git a/httemplate/edit/process/bulk-cust_pkg.cgi b/httemplate/edit/process/bulk-cust_pkg.cgi new file mode 100644 index 000000000..ede3ee8cd --- /dev/null +++ b/httemplate/edit/process/bulk-cust_pkg.cgi @@ -0,0 +1,9 @@ +<% $server->process %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $server = new FS::UI::Web::JSRPC 'FS::cust_pkg::process_bulk_cust_pkg', $cgi; + + -- cgit v1.2.1