projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54d7c40
)
don't lookup a geocode we don't need, RT#10093
author
ivan
<ivan>
Sun, 31 Oct 2010 18:45:42 +0000
(18:45 +0000)
committer
ivan
<ivan>
Sun, 31 Oct 2010 18:45:42 +0000
(18:45 +0000)
FS/FS/cust_main/Billing.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main/Billing.pm
b/FS/FS/cust_main/Billing.pm
index
496ef71
..
cd1d2bd
100644
(file)
--- 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;
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 }
my @taxes = ();
my @taxclassnums = map { $_->taxclassnum }