summaryrefslogtreecommitdiff
path: root/httemplate/edit/REAL_cust_pkg.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-07-15 18:25:13 -0700
committerMark Wells <mark@freeside.biz>2013-07-15 18:25:13 -0700
commitebcfdd04f1fe69028836d231238845801aa69505 (patch)
tree8c2bbc29c554709d3e0576d3626630f58ca89d82 /httemplate/edit/REAL_cust_pkg.cgi
parent8e84773c2e9107185f0a0cf629cf357d7b8979f5 (diff)
future package change, #20687
Diffstat (limited to 'httemplate/edit/REAL_cust_pkg.cgi')
-rwxr-xr-xhttemplate/edit/REAL_cust_pkg.cgi14
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/edit/REAL_cust_pkg.cgi b/httemplate/edit/REAL_cust_pkg.cgi
index 99e911ae5..ac8aa40cb 100755
--- a/httemplate/edit/REAL_cust_pkg.cgi
+++ b/httemplate/edit/REAL_cust_pkg.cgi
@@ -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 <b>unsuspend</b> 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 = '<b>change package</b> to '.$change_to_pkg->part_pkg->pkg;
+% }
+% if ( $change_to_pkg->locationnum != $cust_pkg->locationnum ) {
+% $desc .= ' and ' if $desc;
+% $desc .= '<b>change location</b> 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 <b>cancel</b> this package when the date is reached)' &>
+% }
<& .row_display, cust_pkg=>$cust_pkg, column=>'cancel', label=>'Cancellation' &>