if ignore_icalculable_taxes is on, don't call the errors fatal
authorivan <ivan>
Wed, 13 Jan 2010 03:14:09 +0000 (03:14 +0000)
committerivan <ivan>
Wed, 13 Jan 2010 03:14:09 +0000 (03:14 +0000)
FS/FS/tax_rate.pm

index 101802b..30d7f58 100644 (file)
@@ -481,16 +481,16 @@ sub _fatal_or_null {
 
   my $conf = new FS::Conf;
 
-  $error = "fatal: can't yet handle ". $error;
+  $error = "can't yet handle $error";
   my $name = $self->taxname;
   $name = 'Other surcharges'
     if ($self->passtype == 2);
 
   if ($conf->exists('ignore_incalculable_taxes')) {
-    warn $error;
+    warn "WARNING: $error; billing anyway per ignore_incalculable_taxes conf\n";
     return { name => $name, amount => 0 };
   } else {
-    return $error;
+    return "fatal: $error";
   }
 }