diff options
author | ivan <ivan> | 2003-12-22 21:22:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-12-22 21:22:19 +0000 |
commit | c2671089005c4f4f1fb886b9936aa8d5eea5eb59 (patch) | |
tree | 1fcb428c5ed50242b122d0e414b09fafb4e6eac6 | |
parent | 1f044cfca0e3573db5dae7d7d6dc92933ffd2f8e (diff) |
default to the whole-country tax rate if states aren't defined
-rw-r--r-- | FS/FS/cust_main.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 0046f0287..8695ae09c 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1239,6 +1239,16 @@ sub bill { } ); } + #one more try at a whole-country tax rate + unless ( @taxes ) { + @taxes = qsearch( 'cust_main_county', { + 'state' => '', + 'county' => '', + 'country' => $self->country, + 'taxclass' => '', + } ); + } + # maybe eliminate this entirely, along with all the 0% records unless ( @taxes ) { $dbh->rollback if $oldAutoCommit; |