|
|
@ -77,7 +77,7 @@ function showAlert(text) { |
|
|
|
|
|
|
|
function reset2() |
|
|
|
{ |
|
|
|
document.getElementById("a_type").value=""; |
|
|
|
// document.getElementById("a_type").value="";
|
|
|
|
document.getElementById("a_description").value=""; |
|
|
|
document.getElementById("a_amount").value=""; |
|
|
|
setUploadField(); |
|
|
@ -92,13 +92,13 @@ function addTableRow(){ |
|
|
|
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 ) { |
|
|
|
document.getElementById("a_type").focus(); |
|
|
|
showAlert("Bitte gib eine Auslagenart an!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
var a_date = document.getElementById("a_date").value; |
|
|
|
if (!a_date.trim().length){ |
|
|
|
document.getElementById("a_date").focus(); |
|
|
@ -146,8 +146,8 @@ function addTableRow(){ |
|
|
|
var e=""; |
|
|
|
|
|
|
|
// 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)
|
|
|
|
// e += `<td><textarea name="desc[${nextRowId}]" rows="2"></textarea> </td>`;
|
|
|
@ -303,9 +303,16 @@ function downloadDocument() |
|
|
|
iban = document.getElementById('iban'); |
|
|
|
if (!IBAN.isValid(iban.value)){ |
|
|
|
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; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (banktype == "bank-paypal"){ |
|
|
|