allow maxtype=18 in CCH tax calculation, #31395
authorMark Wells <mark@freeside.biz>
Thu, 16 Oct 2014 19:24:29 +0000 (12:24 -0700)
committerMark Wells <mark@freeside.biz>
Thu, 16 Oct 2014 19:24:29 +0000 (12:24 -0700)
FS/FS/tax_rate.pm

index 5027917..d773ff5 100644 (file)
@@ -433,7 +433,9 @@ sub taxline {
 
   my $maxtype = $self->maxtype || 0;
   if ($maxtype != 0 && $maxtype != 1 
-      && $maxtype != 14 && $maxtype != 15) {
+      && $maxtype != 14 && $maxtype != 15
+      && $maxtype != 18 # sigh
+    ) {
     return $self->_fatal_or_null( 'tax with "'.
                                     $self->maxtype_name. '" threshold'
                                 );