better error message for missing tax classes
authorivan <ivan>
Fri, 28 Jun 2002 20:21:35 +0000 (20:21 +0000)
committerivan <ivan>
Fri, 28 Jun 2002 20:21:35 +0000 (20:21 +0000)
FS/FS/cust_main.pm

index efe9402..9ed3f2c 100644 (file)
@@ -1053,8 +1053,8 @@ sub bill {
               $dbh->rollback if $oldAutoCommit;
               return
                 "fatal: can't find tax rate for state/county/country/taxclass ".
               $dbh->rollback if $oldAutoCommit;
               return
                 "fatal: can't find tax rate for state/county/country/taxclass ".
-                join('/', map $self->$_(), qw(state county country taxclass) ).
-                "\n";
+                join('/', ( map $self->$_(), qw(state county country) ),
+                          $part_pkg->taxclass ).  "\n";
             };
 
           if ( $cust_main_county->exempt_amount ) {
             };
 
           if ( $cust_main_county->exempt_amount ) {