From a661ced3f9f678a645780eaa0b183d2de5f100fa Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 10 Jan 2009 00:43:06 +0000 Subject: more work on package service addresses: hide locations when they're all the default, config to show them anyway / finish implementing package ordering, fix all the state/county weirdness when changing the location dropdown. RT#4499 --- httemplate/view/cust_main/packages.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 9a4997be5..afd9941f6 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -97,7 +97,7 @@ function taxoverridequickchargemagic() {

-% if ( @$packages ) { +% if ( @$packages ) { Current packages % } @@ -131,7 +131,9 @@ Current packages Package Status +% if ( $show_location ) { Location +% } Services @@ -153,7 +155,9 @@ Current packages <% include('packages/package.html', %iopt) %> <% include('packages/status.html', %iopt) %> +% if ( $show_location ) { <% include('packages/location.html', %iopt) %> +% } <% include('packages/services.html', %iopt) %> @@ -183,6 +187,9 @@ my $curuser = $FS::CurrentUser::CurrentUser; my $packages = get_packages($cust_main, $conf); +my $show_location = $conf->exists('cust_pkg-always_show_location') + || ( grep $_->locationnum, @$packages ); # ? '1' : '0'; + #subroutines sub get_packages { -- cgit v1.2.1