projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1554c
)
remove old tax_rate records even if .tax does not match geocode/taxclassnum/taxname...
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 8 Aug 2012 07:38:33 +0000
(
00:38
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 8 Aug 2012 07:38:33 +0000
(
00:38
-0700)
FS/FS/tax_rate.pm
patch
|
blob
|
history
diff --git
a/FS/FS/tax_rate.pm
b/FS/FS/tax_rate.pm
index
a5a623d
..
6c65bd4
100644
(file)
--- 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;