seek the geocode on the correct object RT#10093
authorjeff <jeff>
Sun, 31 Oct 2010 02:47:28 +0000 (02:47 +0000)
committerjeff <jeff>
Sun, 31 Oct 2010 02:47:28 +0000 (02:47 +0000)
FS/FS/cust_main/Billing.pm

index 10734bf..496ef71 100644 (file)
@@ -1226,7 +1226,7 @@ sub _gather_taxes {
   local($DEBUG) = $FS::cust_main::DEBUG if $FS::cust_main::DEBUG > $DEBUG;
 
   my $geocode = $self->geocode('cch');
-  $geocode = $cust_pkg->geocode('cch')
+  $geocode = $cust_pkg->cust_location->geocode('cch')
     if ( $conf->exists('tax-pkg_address') && $cust_pkg->locationnum );
   my @taxes = ();