die with a better error message on bad locales
authorivan <ivan>
Tue, 26 Feb 2002 08:34:53 +0000 (08:34 +0000)
committerivan <ivan>
Tue, 26 Feb 2002 08:34:53 +0000 (08:34 +0000)
FS/FS/cust_main.pm

index 67b426b..e0796f4 100644 (file)
@@ -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 )
     );