diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-11-13 12:45:15 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-11-13 12:45:15 -0500 |
commit | 2554b11e48a7ec4567bf89f9a48f7a83ec925eea (patch) | |
tree | 4672d600d43e1c9f9874845eee3b7546ce22d33f /httemplate/search/report_cust_pkg.html | |
parent | 63da5ded686cf29353617d4c51385da4906b749b (diff) |
RT# 77470 - added reason option to advanced package report with suspended status is selected. Also added links to suspend and unsuspend when status active or suspended is used.
Diffstat (limited to 'httemplate/search/report_cust_pkg.html')
-rwxr-xr-x | httemplate/search/report_cust_pkg.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index 5e8c429ec..981c54607 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -65,10 +65,29 @@ 'onchange' => 'status_changed(this);', &> + <& /elements/tr-select-reason.html, + 'field' => 'reasonnum', + 'reason_class' => 'S', + 'label' => 'Suspended Reason', + 'label_id' => 'reasonnum_label', + 'hide_addnew' => '1', + 'hide_onload' => '1', + 'cgi' => $cgi, + 'control_button' => 'confirm_suspend_cust_button', + 'pre_options' => [ 0 => 'all' ], + &> + <SCRIPT TYPE="text/javascript"> function status_changed(what) { + if (what.options[what.selectedIndex].value == 'suspended') { + document.getElementById('reasonnum_row').style.visibility = 'visible'; + } + else { + document.getElementById('reasonnum_row').style.visibility = 'collapse'; + } + % foreach my $status ( '', FS::cust_pkg->statuses() ) { if ( what.options[what.selectedIndex].value == '<% $status %>' ) { |