From a375847f5b5e1316c0cb8b137e20ee3bb009a8c7 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 12 Oct 2009 02:34:44 +0000 Subject: [PATCH] using the per-city taxes sure was a lot easier than the UI... RT#5852 --- FS/FS/cust_main.pm | 6 +++--- 1 file 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, -- 2.20.1