diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-02-20 16:13:58 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-05-25 09:09:15 -0400 |
commit | 58c975e890bf8c38295ecb2f437e37bf3f6fa756 (patch) | |
tree | ba089e953a1621ed1b4c08e73128cd4c87ee4203 | |
parent | 9c83820a962627f5b5e1e196c8ef310fb96c7407 (diff) |
RT# 71419 Updated Advanced wireless broadband report with new option to display package name.
-rwxr-xr-x | httemplate/search/report_svc_broadband.html | 1 | ||||
-rwxr-xr-x | httemplate/search/svc_broadband.cgi | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/search/report_svc_broadband.html b/httemplate/search/report_svc_broadband.html index d7422eeae..bdddbb636 100755 --- a/httemplate/search/report_svc_broadband.html +++ b/httemplate/search/report_svc_broadband.html @@ -59,6 +59,7 @@ <SELECT NAME="cust_pkg_fields"> <OPTION VALUE="">(none) <OPTION VALUE="setup,last_bill,bill,cancel">Setup date | Last bill date | Next bill date | Cancel date + <OPTION VALUE="package,setup,last_bill,bill,cancel">Package Name, Setup date | Last bill date | Next bill date | </SELECT> </TD> </TR> diff --git a/httemplate/search/svc_broadband.cgi b/httemplate/search/svc_broadband.cgi index 0e52d5fb6..e8cb65aaf 100755 --- a/httemplate/search/svc_broadband.cgi +++ b/httemplate/search/svc_broadband.cgi @@ -149,8 +149,14 @@ foreach my $pkg_field ( @pkg_fields ) { #not the most efficient to do it every field, but this is of niche use. so far push @fields_pkg, sub { my $svc_x = shift; my $cust_pkg = $svc_x->cust_svc->cust_pkg or return ''; - my $value = $cust_pkg->get($pkg_field);#closures help alot - $value ? time2str('%b %d %Y', $value ) : ''; + my $value; + if ($pkg_field eq 'package') { + $value = $cust_pkg->part_pkg->pkg; + } + else { + $value = $cust_pkg->get($pkg_field);#closures help alot + $value ? time2str('%b %d %Y', $value ) : ''; + } }; push @blank_pkg, ''; |