summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-08 00:38:34 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-08 00:38:34 -0700
commite187ad1e7009765291e1a3fdfcc7d7365139b184 (patch)
tree32d325ce59619f364ba7caaa89e7ca301e5ecfbd
parent77120fa89e7e76c0f85a4245d52d733fcf489a2a (diff)
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
-rw-r--r--FS/FS/tax_rate.pm3
1 files changed, 3 insertions, 0 deletions
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;