From: ivan Date: Mon, 12 Oct 2009 02:34:44 +0000 (+0000) Subject: using the per-city taxes sure was a lot easier than the UI... RT#5852 X-Git-Tag: root_of_svc_elec_features~771 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=a375847f5b5e1316c0cb8b137e20ee3bb009a8c7;p=freeside.git using the per-city taxes sure was a lot easier than the UI... RT#5852 --- 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,