X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FBilling.pm;h=e00478836edfa0fabc9f3d0dfdaeb8940e7aa23c;hb=a8501e5799817415bc10c736aa4adf7c851b701a;hp=496ef71c39ff11b742a19360686bf15777fd45a6;hpb=d14aa44391dc7e2828fc6bab3f4032508fe5ea7a;p=freeside.git diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm index 496ef71c3..e00478836 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -1225,9 +1225,13 @@ sub _gather_taxes { local($DEBUG) = $FS::cust_main::DEBUG if $FS::cust_main::DEBUG > $DEBUG; - my $geocode = $self->geocode('cch'); - $geocode = $cust_pkg->cust_location->geocode('cch') - if ( $conf->exists('tax-pkg_address') && $cust_pkg->locationnum ); + my $geocode; + if ( $cust_pkg->locationnum && $conf->exists('tax-pkg_address') ) { + $geocode = $cust_pkg->cust_location->geocode('cch'); + } else { + $geocode = $self->geocode('cch'); + } + my @taxes = (); my @taxclassnums = map { $_->taxclassnum }