From 765301c50ceefa897cc9541edb46adca568cb692 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 17 Nov 2016 00:54:04 -0800 Subject: skip tax district update on disabled locations --- FS/FS/geocode_Mixin.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'FS/FS/geocode_Mixin.pm') 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); -- cgit v1.1