Invoice columns name change issue solved.

This commit is contained in:
Cüneyt Şentürk
2020-11-24 15:00:36 +03:00
parent 057dc7f1d3
commit a274bb32e5
2 changed files with 53 additions and 79 deletions

View File

@ -56,7 +56,7 @@ export default class Form {
if (type == 'radio') {
if (!this[form_element.getAttribute('data-field')][name]) {
this[form_element.getAttribute('data-field')][name] = (form_element.getAttribute('value') ? 1 : 0) || 0;
this[form_element.getAttribute('data-field')][name] = (form_element.getAttribute('value') ? form_element.getAttribute('value') : 0) || 0;
}
} else if (type == 'checkbox') {
if (this[form_element.getAttribute('data-field')][name]) {
@ -83,7 +83,7 @@ export default class Form {
if (type == 'radio') {
if (!this[name]) {
this[name] = (form_element.getAttribute('value') ? 1 : 0) || 0;
this[name] = (form_element.getAttribute('value') ? form_element.getAttribute('value') : 0) || 0;
}
} else if (type == 'checkbox') {
if (this[name]) {