From c5310e027f5d7264b22640f72c3f1744148045ff Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 27 Mar 2013 12:34:22 -0700 Subject: cust_bill_owed_percent condition, #611 --- httemplate/elements/selectlayers.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/elements/selectlayers.html b/httemplate/elements/selectlayers.html index 01fd590ca..cb1d2d619 100644 --- a/httemplate/elements/selectlayers.html +++ b/httemplate/elements/selectlayers.html @@ -236,7 +236,7 @@ sub layer_callback { $date_noinit = 1; } else { - $include = "input-$include" if $include =~ /^(text|money)$/; + $include = "input-$include" if $include =~ /^(text|money|percentage)$/; $include = "tr-$include" unless $include eq 'hidden'; $html .= include( "/elements/$include.html", %$lf, -- cgit v1.2.1 From 6b93f13c012ee4d15216c51136794d8a38726ed6 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 27 Mar 2013 13:26:46 -0700 Subject: fix non-grouped display of package locations, #22207 --- httemplate/view/cust_main/packages/location.html | 11 +++++++---- httemplate/view/cust_main/packages/section.html | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'httemplate') diff --git a/httemplate/view/cust_main/packages/location.html b/httemplate/view/cust_main/packages/location.html index 34e3a64c3..aa3fabf8e 100644 --- a/httemplate/view/cust_main/packages/location.html +++ b/httemplate/view/cust_main/packages/location.html @@ -1,7 +1,8 @@ -% unless ( $cust_pkg->locationnum ) { - (<% mt('default service address') |h %>)
+% if ( $default ) { +
+ (<% emt('default service address') %>)
% } <% $loc->location_label( 'join_string' => '
', @@ -24,8 +25,8 @@ % } -% unless ( $cust_pkg->locationnum ) { -
+% if ( $default ) { +
% } % if ( ! $cust_pkg->get('cancel') @@ -54,6 +55,8 @@ my $statedefault = $opt{'statedefault'} || ($countrydefault eq 'US' ? 'CA' : ''); my $loc = $cust_pkg->cust_location_or_main; +# dubious--they should all have a location now +my $default = $cust_pkg->locationnum == $opt{'cust_main'}->ship_locationnum; sub pkg_change_location_link { my $cust_pkg = shift; diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index 52246192f..909798e4b 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -84,10 +84,11 @@ my %conf_opt = ( 'manage_link_loc' => scalar($conf->config('svc_broadband-manage_link_loc')), 'manage_link-new_window' => $conf->exists('svc_broadband-manage_link-new_window'), 'maestro-status_test' => $conf->exists('maestro-status_test'), - 'cust_pkg-large_pkg_size' => $conf->config('cust_pkg-large_pkg_size'), + 'cust_pkg-large_pkg_size' => scalar($conf->config('cust_pkg-large_pkg_size')), # for packages.html Change location link 'show_location' => $show_location, ); +warn Dumper \%conf_opt; -- cgit v1.2.1 From d947cdfd70c0bbc6d6a97d4f967fc06dfde6b862 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 27 Mar 2013 13:42:00 -0700 Subject: debug --- httemplate/view/cust_main/packages/section.html | 1 - 1 file changed, 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index 909798e4b..8ea7a7d5f 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -89,6 +89,5 @@ my %conf_opt = ( # for packages.html Change location link 'show_location' => $show_location, ); -warn Dumper \%conf_opt; -- cgit v1.2.1 From 7db25915018db59d1337142606e225810d188239 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 27 Mar 2013 15:08:27 -0700 Subject: Excel download of Agent Commission report, #22090 --- httemplate/search/agent_commission.html | 100 ++++++++++++++++++++++++++++++-- 1 file changed, 94 insertions(+), 6 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/agent_commission.html b/httemplate/search/agent_commission.html index b8fbe200f..b94ae9f6e 100644 --- a/httemplate/search/agent_commission.html +++ b/httemplate/search/agent_commission.html @@ -1,6 +1,12 @@ %# still not a good way to do rows grouped by some field in a search.html %# report +% if ( $type eq 'xls' ) { +<% $data %>\ +% } else { <& /elements/header.html, $title &> +

+Download full results
+as Excel spreadsheet