fix WA tax update script for some district numbers, #26265
authorMark Wells <mark@freeside.biz>
Tue, 1 Nov 2016 08:47:20 +0000 (01:47 -0700)
committerMark Wells <mark@freeside.biz>
Tue, 1 Nov 2016 08:48:02 +0000 (01:48 -0700)
bin/wa_tax_rate_update

index 2d493db..fbca9dd 100644 (file)
@@ -78,6 +78,7 @@ my $total_skipped = 0;
 while ( !$csv->eof ) {
   my $line = $csv->getline_hr($fh);
   my $district = $line->{Code} or next;
+  $district = sprintf('%04d', $district);
   my $tax = sprintf('%.1f', $line->{Rate} * 100);
   my $changed = 0;
   my $skipped = 0;