summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-11-07 16:34:38 -0800
committerMark Wells <mark@freeside.biz>2016-11-07 16:34:53 -0800
commit28cf324a9c7ce5fb4f059ecebcf297cf1d035fe8 (patch)
treedd4ad370caec01f2aecaf8b8d2fb0770ea466231
parent165b1825de624fb25f982968383a35eca9efcbaf (diff)
fix wa_tax_rate_update script to skip zero rates, #73226
-rwxr-xr-xbin/wa_tax_rate_update4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/wa_tax_rate_update b/bin/wa_tax_rate_update
index fbca9dd..d4a4b52 100755
--- a/bin/wa_tax_rate_update
+++ b/bin/wa_tax_rate_update
@@ -89,6 +89,7 @@ while ( !$csv->eof ) {
district => $district,
taxclass => $opt_c,
taxname => $opt_t,
+ tax => { op => '>', value => '0' },
});
if ($opt_t eq '') {
push @rates, qsearch('cust_main_county', {
@@ -96,7 +97,8 @@ while ( !$csv->eof ) {
state => 'WA', # this is specific to WA
district => $district,
taxclass => $opt_c,
- taxname => 'Tax'
+ taxname => 'Tax',
+ tax => { op => '>', value => '0' },
});
}
foreach my $rate (@rates) {