projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
790efa5
)
fix one-time charge inadvertantly checking the "tax exempt" checkbox when the tax...
author
ivan
<ivan>
Fri, 18 Sep 2009 01:03:05 +0000
(
01:03
+0000)
committer
ivan
<ivan>
Fri, 18 Sep 2009 01:03:05 +0000
(
01:03
+0000)
httemplate/view/cust_main/one_time_charge_link.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/one_time_charge_link.html
b/httemplate/view/cust_main/one_time_charge_link.html
index
f6bb434
..
4ce8a28
100644
(file)
--- 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) {
<SCRIPT TYPE="text/javascript">
function taxproductmagic(which) {
+
var str = '';
var elements = which.form.elements;
for (var i = 0; i<elements.length; i++) {
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;
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 (elements[i].name == 'taxproductnum_description'){
continue;
}
+
if (str.length){str += ';';}
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();
}
document.getElementById('charge_storage').value = str;
cClick();