diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-05-10 20:30:17 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-10 20:30:17 -0700 |
commit | 053116d325050963ada4455c83b7bd1c154ce59f (patch) | |
tree | 7a5a4a7d47e6f23a57480c60613f7ff2a99e4ae2 /httemplate | |
parent | 47822a049bc96a4cc0d868553f87d7c4568e868c (diff) |
fix uncancellation w/services that have been re-provisioned, RT#17518
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/misc/cancel_pkg.html | 6 | ||||
-rwxr-xr-x | httemplate/misc/process/cancel_pkg.html | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/misc/cancel_pkg.html b/httemplate/misc/cancel_pkg.html index 3a6a4d1..348f0a6 100755 --- a/httemplate/misc/cancel_pkg.html +++ b/httemplate/misc/cancel_pkg.html @@ -44,6 +44,12 @@ 'format' => $date_format, } &> + <& /elements/tr-checkbox.html, + 'label' => mt("Uncancel even if a service can't be re-provisioned"), + 'field' => 'svc_not_fatal', + 'value' => 'Y', + &> + % $date_init = 1; % } diff --git a/httemplate/misc/process/cancel_pkg.html b/httemplate/misc/process/cancel_pkg.html index bc3a8cd..b2d7bfa 100755 --- a/httemplate/misc/process/cancel_pkg.html +++ b/httemplate/misc/process/cancel_pkg.html @@ -80,11 +80,14 @@ my $last_bill = my $bill = $cgi->param('bill') ? parse_datetime($cgi->param('bill')) : ''; +my $svc_fatal = ( $cgi->param('svc_not_fatal') ne 'Y' ); + my $error = $cust_pkg->$method( 'reason' => $reasonnum, 'date' => $date, 'resume_date' => $resume_date, 'last_bill' => $last_bill, 'bill' => $bill, + 'svc_fatal' => $svc_fatal, ); if ($error) { |