From: ivan Date: Tue, 26 Feb 2002 08:34:53 +0000 (+0000) Subject: die with a better error message on bad locales X-Git-Tag: freeside_1_4_0_pre12~190 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f856cb7523ad477d63040ff6294a99d7bbd1f2bb die with a better error message on bad locales --- diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 67b426b85..e0796f4f1 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1000,7 +1000,8 @@ sub bill { 'state' => $self->state, 'county' => $self->county, 'country' => $self->country, - } ); + } ) or die "fatal: can't find tax rate for state/county/country ". + $self->state. "/". $self->county. "/". $self->country. "\n"; my $tax = sprintf( "%.2f", $taxable_charged * ( $cust_main_county->getfield('tax') / 100 ) );