X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2FREAL_cust_pkg.cgi;h=ac8aa40cb6d0c9b565c3af8bc0bdf9eae46e9dca;hb=dd268209494ce9fc3491d02b8c3034a7dffc84e4;hp=4bcf55c443cc7ef863039696a878ace8f03dff67;hpb=ceaa9e6ca4222595c1795c4bbde8d1c9609045e7;p=freeside.git diff --git a/httemplate/edit/REAL_cust_pkg.cgi b/httemplate/edit/REAL_cust_pkg.cgi index 4bcf55c44..ac8aa40cb 100755 --- a/httemplate/edit/REAL_cust_pkg.cgi +++ b/httemplate/edit/REAL_cust_pkg.cgi @@ -70,7 +70,7 @@ function confirm_changes() { Comment - <% $part_pkg->comment %> + <% $part_pkg->comment |h %> @@ -95,7 +95,21 @@ function confirm_changes() { <& .row_display, cust_pkg=>$cust_pkg, column=>'susp', label=>'Suspension' &> <& .row_display, cust_pkg=>$cust_pkg, column=>'resume', label=>'Resumption', note=> '(will unsuspend this package when the date is reached' &> +% if ( $cust_pkg->change_to_pkgnum ) { +% my $change_to_pkg = FS::cust_pkg->by_key($cust_pkg->change_to_pkgnum); +% my $desc; +% if ( $change_to_pkg->pkgpart != $cust_pkg->pkgpart ) { +% $desc = 'change package to '.$change_to_pkg->part_pkg->pkg; +% } +% if ( $change_to_pkg->locationnum != $cust_pkg->locationnum ) { +% $desc .= ' and ' if $desc; +% $desc .= 'change location to "'. +% $change_to_pkg->cust_location->line . '"'; +% } + <& .row_display, cust_pkg=>$cust_pkg, column=>'expire', label=>'Change package', note=>"(will $desc when the date is reached)" &> +% } else { <& .row_display, cust_pkg=>$cust_pkg, column=>'expire', label=>'Expiration', note=>'(will cancel this package when the date is reached)' &> +% } <& .row_display, cust_pkg=>$cust_pkg, column=>'cancel', label=>'Cancellation' &>