diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-06-30 03:24:08 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-07-02 23:53:46 -0500 |
commit | 622c72770c971ae44d37dfb59a0f25972051a25a (patch) | |
tree | 6d4d5d76b5c468b0dd7cb351c80e3933859b2179 /httemplate/edit | |
parent | fa8a42b29c19f9cb692f409e6ac3d081010ec3f8 (diff) |
RT##29285: State field not needed for New Zealand
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/cust_main/top_misc.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/top_misc.html b/httemplate/edit/cust_main/top_misc.html index 8f8a96a0c..c19f347c3 100644 --- a/httemplate/edit/cust_main/top_misc.html +++ b/httemplate/edit/cust_main/top_misc.html @@ -40,7 +40,7 @@ var ship_locked_agents = <% encode_json(\%ship_locked_agents) %>; var ship_fields = [ - 'locationname', 'address1', 'city', 'state', 'zip', 'country', + 'locationname', 'address1',<% $conf->exists('cust_main-no_city_in_address') ? '' : q( 'city',) %> 'state', 'zip', 'country', 'latitude', 'longitude', 'district' ]; @@ -276,7 +276,10 @@ foreach (qsearch('agent',{})) { my $agent_ship_location = $cust_main->ship_location; $ship_locked_agents{$agentnum} = +{ map { $_ => $agent_ship_location->$_ } - qw(locationname address1 city state zip country latitude longitude district) + ( + qw(locationname address1 state zip country latitude longitude district), + ($conf->exists('cust_main-no_city_in_address') ? () : 'city') + ) }; } |