projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 30783 Clean up json code for free_addrs
[freeside.git]
/
FS
/
FS
/
Cron
/
tax_rate_update.pm
diff --git
a/FS/FS/Cron/tax_rate_update.pm
b/FS/FS/Cron/tax_rate_update.pm
index
2c021b8
..
fec696f
100755
(executable)
--- a/
FS/FS/Cron/tax_rate_update.pm
+++ b/
FS/FS/Cron/tax_rate_update.pm
@@
-31,7
+31,7
@@
sub tax_rate_update {
my %opt = @_;
my $oldAutoCommit = $FS::UID::AutoCommit;
my %opt = @_;
my $oldAutoCommit = $FS::UID::AutoCommit;
- $FS::UID::AutoCommit = 0;
+
local
$FS::UID::AutoCommit = 0;
my $dbh = dbh;
my $conf = FS::Conf->new;
my $dbh = dbh;
my $conf = FS::Conf->new;
@@
-40,6
+40,7
@@
sub tax_rate_update {
my $taxname = $conf->config('tax_district_taxname') || '';
my $taxname = $conf->config('tax_district_taxname') || '';
+ FS::cust_main_county->lock_table;
if ($method eq 'wa_sales') {
# download the update file
my $now = DateTime->now;
if ($method eq 'wa_sales') {
# download the update file
my $now = DateTime->now;