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 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 httemplate/edit/bulk-cust_pkg.html (limited to 'httemplate/edit/bulk-cust_pkg.html') 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'); + + -- cgit v1.2.1 From 4969e04fadd6edd9a590dd23e0143b511cb13bc5 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 3 Nov 2010 01:04:46 +0000 Subject: safety improvement to RT#9947 --- httemplate/edit/bulk-cust_pkg.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'httemplate/edit/bulk-cust_pkg.html') diff --git a/httemplate/edit/bulk-cust_pkg.html b/httemplate/edit/bulk-cust_pkg.html index ab419215e..2ff38ca53 100644 --- a/httemplate/edit/bulk-cust_pkg.html +++ b/httemplate/edit/bulk-cust_pkg.html @@ -4,7 +4,7 @@ <% include('/elements/progress-init.html', 'OneTrueForm', - [qw( old_pkgpart new_pkgpart keep_dates)], + [qw( old_pkgpart new_pkgpart )], 'process/bulk-cust_pkg.cgi', $p.'browse/part_pkg.cgi', ) @@ -12,7 +12,8 @@