projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f45527f
)
fix at least the popup w/CCH taxation on 3.0, RT#21485
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 19 Feb 2013 03:42:07 +0000
(19:42 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 19 Feb 2013 03:42:07 +0000
(19:42 -0800)
httemplate/elements/standardize_locations.js
patch
|
blob
|
history
diff --git
a/httemplate/elements/standardize_locations.js
b/httemplate/elements/standardize_locations.js
index
88c87c1
..
4f1ec3d
100644
(file)
--- a/
httemplate/elements/standardize_locations.js
+++ b/
httemplate/elements/standardize_locations.js
@@
-191,12
+191,14
@@
function post_standardization() {
% if ( $conf->exists('enable_taxproducts') ) {
% 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;
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' ) {
if ( country == 'CA' || country == 'US' ) {
@@
-218,14
+220,14
@@
function post_standardization() {
} else {
} else {
- cf.elements['geocode'].value = 'DEFAULT';
+ cf.elements['
bill_
geocode'].value = 'DEFAULT';
<% $post_geocode %>;
}
} else {
<% $post_geocode %>;
}
} else {
- cf.elements['geocode'].value = '';
+ cf.elements['
bill_
geocode'].value = '';
<% $post_geocode %>;
}
<% $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['<% $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 %>;
}
<% $post_geocode %>;
}