X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust_location.html;h=bc3915441ac74a1295f01e2eb12de3bbb5546acd;hb=41f561eb60f8a69d1ce3685e04cfd1e1a8efefad;hp=b62c65c03d431ec694dfcdd7fd8b16b15307d167;hpb=a661ced3f9f678a645780eaa0b183d2de5f100fa;p=freeside.git diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index b62c65c03..bc3915441 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -42,16 +42,16 @@ Example: } else { if ( locationnum == 0 ) { - what.form.address1.value = <% $cust_main->address1 |js_string %>; - what.form.address2.value = <% $cust_main->address2 |js_string %>; - what.form.city.value = <% $cust_main->city |js_string %>; - what.form.zip.value = <% $cust_main->zip |js_string %>; + what.form.address1.value = <% $cust_main->get($prefix.'address1') |js_string %>; + what.form.address2.value = <% $cust_main->get($prefix.'address2') |js_string %>; + what.form.city.value = <% $cust_main->get($prefix.'city') |js_string %>; + what.form.zip.value = <% $cust_main->get($prefix.'zip') |js_string %>; - changeSelect(what.form.country, <% $cust_main->country | js_string %> ); + changeSelect(what.form.country, <% $cust_main->get($prefix.'country') | js_string %> ); country_changed( what.form.country, - fix_state_factory( <% $cust_main->state | js_string %>, - <% $cust_main->county | js_string %> + fix_state_factory( <% $cust_main->get($prefix.'state') | js_string %>, + <% $cust_main->get($prefix.'county') | js_string %> ) ); @@ -118,7 +118,7 @@ Example: - Service location + <<%$th%> ALIGN="right"><% $opt{'label'} || 'Service location' %>>