diff options
author | ivan <ivan> | 2002-02-26 08:34:53 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-02-26 08:34:53 +0000 |
commit | f856cb7523ad477d63040ff6294a99d7bbd1f2bb (patch) | |
tree | b5fe7c9d0db8533b16f1fbfb6e67f324a409434a | |
parent | bc8ce86aaf207f2fb89054020873bbff79489642 (diff) |
die with a better error message on bad locales
-rw-r--r-- | FS/FS/cust_main.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) ); |