diff options
author | ivan <ivan> | 2009-09-18 01:03:05 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-09-18 01:03:05 +0000 |
commit | 3de7395677b966be0bc1d44bc0b912ebb58564ec (patch) | |
tree | 8d55cc22658eab374a5249043f6454f197e9e8ef /httemplate/view/cust_main | |
parent | 790efa50f8968d9d18028ef8aeaa7a8c7c16965c (diff) |
fix one-time charge inadvertantly checking the "tax exempt" checkbox when the tax product popup is swapped in and out, RT#6095
Diffstat (limited to 'httemplate/view/cust_main')
-rw-r--r-- | httemplate/view/cust_main/one_time_charge_link.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/one_time_charge_link.html b/httemplate/view/cust_main/one_time_charge_link.html index f6bb43490..4ce8a28a3 100644 --- a/httemplate/view/cust_main/one_time_charge_link.html +++ b/httemplate/view/cust_main/one_time_charge_link.html @@ -1,9 +1,11 @@ <SCRIPT TYPE="text/javascript"> function taxproductmagic(which) { + var str = ''; var elements = which.form.elements; for (var i = 0; i<elements.length; i++) { + if (elements[i].name == 'taxproductnum'){ document.getElementById('taxproductnum').value = elements[i].value; continue; @@ -11,8 +13,21 @@ function taxproductmagic(which) { if (elements[i].name == 'taxproductnum_description'){ continue; } + if (str.length){str += ';';} - str += elements[i].name + '=' + escape(elements[i].value); + + var value = ''; + if ( elements[i].type == 'checkbox' || elements[i].type == 'radio' ) { + if ( elements[i].checked == true ) { + value = elements[i].value; + //} else { + // value = ''; + } + } else { + value = elements[i].value; + } + str += elements[i].name + '=' + escape(value); + } document.getElementById('charge_storage').value = str; cClick(); |