summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-02-18 19:42:07 -0800
committerIvan Kohler <ivan@freeside.biz>2013-02-18 19:42:07 -0800
commit0882e975e31c0b5d362983f008719101db2a88a9 (patch)
treefaa1be1d32b942641a2d3c4b5cdc19ba3f5d7cb7
parentf45527f4281a1b2a5e2efd0de3f78539916b61dd (diff)
fix at least the popup w/CCH taxation on 3.0, RT#21485
-rw-r--r--httemplate/elements/standardize_locations.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js
index 88c87c154..4f1ec3d57 100644
--- a/httemplate/elements/standardize_locations.js
+++ b/httemplate/elements/standardize_locations.js
@@ -191,12 +191,14 @@ function post_standardization() {
% if ( $conf->exists('enable_taxproducts') ) {
+ var cf = document.<% $formname %>;
+
if ( new String(cf.elements['<% $taxpre %>zip'].value).length < 10 )
{
var country_el = cf.elements['<% $taxpre %>country'];
var country = country_el.options[ country_el.selectedIndex ].value;
- var geocode = cf.elements['geocode'].value;
+ var geocode = cf.elements['bill_geocode'].value;
if ( country == 'CA' || country == 'US' ) {
@@ -218,14 +220,14 @@ function post_standardization() {
} else {
- cf.elements['geocode'].value = 'DEFAULT';
+ cf.elements['bill_geocode'].value = 'DEFAULT';
<% $post_geocode %>;
}
} else {
- cf.elements['geocode'].value = '';
+ cf.elements['bill_geocode'].value = '';
<% $post_geocode %>;
}
@@ -250,7 +252,7 @@ function update_geocode() {
cf.elements['<% $taxpre %>city'].value = argsHash['city'];
setselect(cf.elements['<% $taxpre %>state'], argsHash['state']);
cf.elements['<% $taxpre %>zip'].value = argsHash['zip'];
- cf.elements['geocode'].value = argsHash['geocode'];
+ cf.elements['bill_geocode'].value = argsHash['geocode'];
<% $post_geocode %>;
}