diff options
author | ivan <ivan> | 2003-12-22 21:22:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-12-22 21:22:31 +0000 |
commit | 2ee3a78a58063d46ec871e19cdc6edc15fedb9e9 (patch) | |
tree | 970c43f4e7da1fd689dface553a117b4a52d37ee | |
parent | 5eed801d74e5494ea58517a03a2fa78fff745b2e (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 e49bf70ca..57fe3b851 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1220,6 +1220,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; |