From d422d2530bda9de3af830f1e1ab1084061b486f5 Mon Sep 17 00:00:00 2001 From: Alex Brelsfoard Date: Tue, 10 Feb 2015 00:10:00 -0500 Subject: [PATCH] RT #29285 adding new config to disable city requirement --- FS/FS/Conf.pm | 8 ++++++++ httemplate/elements/location.html | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 029f1a1bf..9ba3f0983 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -3352,6 +3352,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 ) %> -- 2.11.0