X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fbulk-cust_pkg.html;h=8a082f47f5faecf87218acf29b1e73853511f6f4;hb=2009d9cee8038aeff5b4313113fc23f546455cf5;hp=ab419215ec544b4ff9fa5c5305364f7b63a576f7;hpb=942f129f37980d8a2a87be8c3297663ad38298ba;p=freeside.git diff --git a/httemplate/edit/bulk-cust_pkg.html b/httemplate/edit/bulk-cust_pkg.html index ab419215e..8a082f47f 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,41 +12,33 @@
-% #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"; -% +% foreach my $src_part_pkg (@src_part_pkg) { + + Change <% $src_part_pkg->pkg_comment |h %>
+% } - -Change <% $src_part_pkg->pkg_comment %>
- +
to new package definition

- Preserve all billing dates -
-
+%# Preserve all billing dates (strongly recommended) +%#
+%#
@@ -59,4 +51,18 @@ to new package definition die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my @src_part_pkg = (); +foreach my $pkgpart ( $cgi->multi_param('pkgpart') ) { + + $pkgpart =~ /^(\d+)$/ + or die "illegal pkgpart: $pkgpart"; + + my $old_pkgpart = $1; + my $src_part_pkg = qsearchs('part_pkg', { 'pkgpart' => $old_pkgpart } ) + or die "unknown pkgpart: $old_pkgpart"; + + push @src_part_pkg, $src_part_pkg; + +} +