From: Alex Brelsfoard Date: Tue, 10 Feb 2015 05:10:00 +0000 (-0500) Subject: RT #29285 adding new config to disable city requirement X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=fa8a42b29c19f9cb692f409e6ac3d081010ec3f8;p=freeside.git RT #29285 adding new config to disable city requirement --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 5ea3555e7..fa612c065 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -3397,6 +3397,14 @@ and customer address. Include units.', }, { + 'key' => 'city_not_required', + 'section' => 'required', + 'description' => 'Turn off requirement for a City to be entered for billing & shipping addresses', + 'type' => 'checkbox', + 'per_agent' => 1, + }, + + { 'key' => 'echeck-void', 'section' => 'deprecated', 'description' => 'DEPRECATED, now controlled by ACLs. Used to enable local-only voiding of echeck payments in addition to refunds against the payment gateway', diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 214a7d5f2..357a91db7 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -169,10 +169,15 @@ Example: +% if ($conf->exists('city_not_required')) { + +%} else { <<%$th%> ALIGN="right"><%$r%><% mt('City') |h %>> <% include('/elements/city.html', %select_hash, 'text_style' => \@style ) %> + <<%$th%> ALIGN="right" WIDTH="1" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County> <% include('/elements/select-county.html', %select_hash ) %> +% } <<%$th%> ALIGN="right" WIDTH="1"><%$r%><% mt('State') |h %>> <% include('/elements/select-state.html', %select_hash ) %>