diff options
author | Mark Wells <mark@freeside.biz> | 2016-11-17 00:54:04 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-11-17 00:54:48 -0800 |
commit | 765301c50ceefa897cc9541edb46adca568cb692 (patch) | |
tree | 20137103b81098903aefa67ec71da586682a03c0 /FS/FS/geocode_Mixin.pm | |
parent | 2b76dd3be38311e9144a3f2017dfdaec6261fff3 (diff) |
skip tax district update on disabled locations
Diffstat (limited to 'FS/FS/geocode_Mixin.pm')
-rw-r--r-- | FS/FS/geocode_Mixin.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/geocode_Mixin.pm b/FS/FS/geocode_Mixin.pm index ef16e74..b999be0 100644 --- a/FS/FS/geocode_Mixin.pm +++ b/FS/FS/geocode_Mixin.pm @@ -265,6 +265,7 @@ sub process_district_update { my $method = $conf->config('tax_district_method') or return; #nothing to do if null my $self = $class->by_key($id) or die "object $id not found"; + return if $self->disabled; # dies on error, fine my $tax_info = get_district({ $self->location_hash }, $method); |