From: ivan Date: Wed, 13 Jan 2010 03:14:10 +0000 (+0000) Subject: if ignore_icalculable_taxes is on, don't call the errors fatal X-Git-Tag: freeside_1_9_2~128 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=bab8e48b384a09adcba9be8a45359db979c9e83c if ignore_icalculable_taxes is on, don't call the errors fatal --- diff --git a/FS/FS/tax_rate.pm b/FS/FS/tax_rate.pm index 101802bd5..30d7f58d0 100644 --- a/FS/FS/tax_rate.pm +++ b/FS/FS/tax_rate.pm @@ -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"; } }