summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-10-12 02:34:44 +0000
committerivan <ivan>2009-10-12 02:34:44 +0000
commita375847f5b5e1316c0cb8b137e20ee3bb009a8c7 (patch)
treef111b34221cc98943a959310fcf6344712e0f6f6
parent6c0db7e65dd04a68d1cede46d1881a219d69b7f2 (diff)
using the per-city taxes sure was a lot easier than the UI... RT#5852
-rw-r--r--FS/FS/cust_main.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index c83acc65e..506f10b89 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -3105,7 +3105,7 @@ sub _handle_taxes {
} else {
- my @loc_keys = qw( state county country );
+ my @loc_keys = qw( city county state country );
my %taxhash;
if ( $conf->exists('tax-pkg_address') && $cust_pkg->locationnum ) {
my $cust_location = $cust_pkg->cust_location;
@@ -3124,7 +3124,7 @@ sub _handle_taxes {
my %taxhash_elim = %taxhash;
- my @elim = qw( taxclass county state );
+ my @elim = qw( taxclass city county state );
while ( !scalar(@taxes) && scalar(@elim) ) {
$taxhash_elim{ shift(@elim) } = '';
@taxes = qsearch( 'cust_main_county', \%taxhash_elim );
@@ -7243,7 +7243,7 @@ sub charge {
'plan' => 'flat',
'freq' => 0,
'disabled' => 'Y',
- 'classnum' => $classnum ? $classnum : '',
+ 'classnum' => ( $classnum ? $classnum : '' ),
'setuptax' => $setuptax,
'taxclass' => $taxclass,
'taxproductnum' => $taxproduct,