[freeside-commits] branch master updated. 96696ba55a8527765575756b78990acb92e55f16

Mark Wells mark at 420.am
Mon Nov 7 16:40:48 PST 2016


The branch, master has been updated
       via  96696ba55a8527765575756b78990acb92e55f16 (commit)
       via  3fa5501cf8f3344360cb2a795ab58711d96540f5 (commit)
      from  dc4e882662ac72279c008d47903a3978cf227f72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 96696ba55a8527765575756b78990acb92e55f16
Author: Mark Wells <mark at freeside.biz>
Date:   Mon Nov 7 16:37:28 2016 -0800

    fix nit

diff --git a/FS/FS/Cron/tax_rate_update.pm b/FS/FS/Cron/tax_rate_update.pm
index e345964..2c021b8 100755
--- a/FS/FS/Cron/tax_rate_update.pm
+++ b/FS/FS/Cron/tax_rate_update.pm
@@ -109,3 +109,5 @@ sub tax_rate_update {
   } # else $method isn't wa_sales, no other methods exist yet
   '';
 }
+
+1;

commit 3fa5501cf8f3344360cb2a795ab58711d96540f5
Author: Mark Wells <mark at freeside.biz>
Date:   Mon Nov 7 16:34:38 2016 -0800

    fix wa_tax_rate_update script to skip zero rates, #73226

diff --git a/bin/wa_tax_rate_update b/bin/wa_tax_rate_update
index fbca9dd..d4a4b52 100644
--- 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) {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Cron/tax_rate_update.pm |    2 ++
 bin/wa_tax_rate_update        |    4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list