fix restore of setup and recur taxproducts on tax data replacement
authorjeff <jeff>
Mon, 22 Mar 2010 14:08:40 +0000 (14:08 +0000)
committerjeff <jeff>
Mon, 22 Mar 2010 14:08:40 +0000 (14:08 +0000)
FS/FS/tax_rate.pm

index 9bcd697..463fc08 100644 (file)
@@ -1263,7 +1263,7 @@ sub _remember_tax_products {
       if $part_pkg_taxproduct && $part_pkg_taxproduct->data_vendor eq $format;
 
     foreach my $option ( $part_pkg->part_pkg_option ) {
-      next unless $option->optionname =~ /^usage_taxproductnum_(\w)$/;
+      next unless $option->optionname =~ /^usage_taxproductnum_(\w+)$/;
       my $class = $1;
 
       $part_pkg_taxproduct = $part_pkg->taxproduct($class);