diff options
Diffstat (limited to 'FS/FS/cust_main/Search.pm')
-rw-r--r-- | FS/FS/cust_main/Search.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index b022985..f14f897 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -668,7 +668,9 @@ sub search { # parse with hardcoded tax location checkbox ## - push @where, "ship_location.geocode is not null" + my $tax_prefix = FS::Conf->new->exists('tax-ship_location') ? 'ship_' + : 'bill_'; + push @where, "${tax_prefix}location.geocode is not null" if $params->{'with_geocode'}; ## |