|
@ -77,7 +77,7 @@ function showAlert(text) { |
|
|
|
|
|
|
|
|
function reset2() |
|
|
function reset2() |
|
|
{ |
|
|
{ |
|
|
document.getElementById("a_type").value=""; |
|
|
|
|
|
|
|
|
// document.getElementById("a_type").value="";
|
|
|
document.getElementById("a_description").value=""; |
|
|
document.getElementById("a_description").value=""; |
|
|
document.getElementById("a_amount").value=""; |
|
|
document.getElementById("a_amount").value=""; |
|
|
setUploadField(); |
|
|
setUploadField(); |
|
@ -92,13 +92,13 @@ function addTableRow(){ |
|
|
element.setAttribute("id", "trow"+currentRowId); |
|
|
element.setAttribute("id", "trow"+currentRowId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var a_type = document.getElementById("a_type").value; |
|
|
|
|
|
|
|
|
/* var a_type = document.getElementById("a_type").value; |
|
|
if (!a_type.trim().length ) { |
|
|
if (!a_type.trim().length ) { |
|
|
document.getElementById("a_type").focus(); |
|
|
document.getElementById("a_type").focus(); |
|
|
showAlert("Bitte gib eine Auslagenart an!"); |
|
|
showAlert("Bitte gib eine Auslagenart an!"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
var a_date = document.getElementById("a_date").value; |
|
|
var a_date = document.getElementById("a_date").value; |
|
|
if (!a_date.trim().length){ |
|
|
if (!a_date.trim().length){ |
|
|
document.getElementById("a_date").focus(); |
|
|
document.getElementById("a_date").focus(); |
|
@ -146,8 +146,8 @@ function addTableRow(){ |
|
|
var e=""; |
|
|
var e=""; |
|
|
|
|
|
|
|
|
// add column for position no
|
|
|
// add column for position no
|
|
|
e += `<td>${a_type}
|
|
|
|
|
|
<input type="hidden" name="type[${currentRowId}]" value="${a_type}" /></td>`; |
|
|
|
|
|
|
|
|
// e += `<td>${a_type}
|
|
|
|
|
|
// <input type="hidden" name="type[${currentRowId}]" value="${a_type}" /></td>`;
|
|
|
|
|
|
|
|
|
// add coluemn for a_type (Auslagenart)
|
|
|
// add coluemn for a_type (Auslagenart)
|
|
|
// e += `<td><textarea name="desc[${nextRowId}]" rows="2"></textarea> </td>`;
|
|
|
// e += `<td><textarea name="desc[${nextRowId}]" rows="2"></textarea> </td>`;
|
|
@ -303,9 +303,16 @@ function downloadDocument() |
|
|
iban = document.getElementById('iban'); |
|
|
iban = document.getElementById('iban'); |
|
|
if (!IBAN.isValid(iban.value)){ |
|
|
if (!IBAN.isValid(iban.value)){ |
|
|
document.getElementById("iban").focus(); |
|
|
document.getElementById("iban").focus(); |
|
|
showAlert("Bitte igib eine korrekte IBAN ein!"); |
|
|
|
|
|
|
|
|
showAlert("Bitte gib eine korrekte IBAN ein!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (!document.getElementById('bic').value.trim().length){ |
|
|
|
|
|
document.getElementById("bic").focus(); |
|
|
|
|
|
showAlert("Bitte gib einen koreekte BIC an!"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (banktype == "bank-paypal"){ |
|
|
if (banktype == "bank-paypal"){ |
|
|