From: Ivan Kohler Date: Wed, 8 Aug 2012 07:38:33 +0000 (-0700) Subject: remove old tax_rate records even if .tax does not match geocode/taxclassnum/taxname... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c1a8a9a97ee439036f9f3da5ff222fe3612fc4be remove old tax_rate records even if .tax does not match geocode/taxclassnum/taxname/etc. should be enough(bad data from last update?), RT#18817 --- diff --git a/FS/FS/tax_rate.pm b/FS/FS/tax_rate.pm index a5a623d94..6c65bd4c5 100644 --- a/FS/FS/tax_rate.pm +++ b/FS/FS/tax_rate.pm @@ -826,6 +826,9 @@ sub batch_import { } } + #remove even if the rate doesn't match, + # geocode/taxclassnum/taxname/etc. should be enough + delete $delete{$_}->{tax}; my $old = qsearchs( 'tax_rate', $delete{$_} ); unless ($old) { $dbh->rollback if $oldAutoCommit;