diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-05-16 16:08:31 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-05-16 16:08:31 -0700 |
| commit | 1cde870268b03197da75f089669d60a7ba3c5617 (patch) | |
| tree | 3e2dfa3a9f73a59eefe6ec772efc1aec1f931406 /FS | |
| parent | 747949f05c140e23221b3a2364928431f58fc2d3 (diff) | |
| parent | 16fe3ab085213efe13680a7d2d8c50e38cf8750a (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/geocode_Mixin.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/geocode_Mixin.pm b/FS/FS/geocode_Mixin.pm index 57d8ca0e8..611b9e5c1 100644 --- a/FS/FS/geocode_Mixin.pm +++ b/FS/FS/geocode_Mixin.pm @@ -236,6 +236,8 @@ sub process_district_update { my $class = shift; my $id = shift; + local $DEBUG = 1; + eval "use FS::Misc::Geo qw(get_district); use FS::Conf; use $class;"; die $@ if $@; die "$class has no location data" if !$class->can('location_hash'); @@ -255,6 +257,8 @@ sub process_district_update { my %hash = map { $_ => $tax_info->{$_} } qw( district city county state country ); + $hash{'taxname'} = ''; + my $old = qsearchs('cust_main_county', \%hash); if ( $old ) { my $new = new FS::cust_main_county { $old->hash, %$tax_info }; |
