From 38183ebb1b1c7dfef60ee60312d191e2233963f9 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83> Date: Wed, 4 Mar 2020 11:01:42 +0000 Subject: [PATCH] Simplified forms, no "Auslagenart" anymore --- ka.php | 35 +++++++++++++++++++++++++++-------- kaform.js | 19 +++++++++++++------ 2 files changed, 40 insertions(+), 14 deletions(-) diff --git a/ka.php b/ka.php index ee09e13..6fd192b 100644 --- a/ka.php +++ b/ka.php @@ -93,7 +93,7 @@ - + @@ -111,7 +111,14 @@ - + + + + + @@ -119,7 +126,7 @@ - + @@ -148,7 +155,12 @@ - + + + @@ -186,10 +198,11 @@ - + + + - @@ -201,7 +214,13 @@ - + + EUR + USD + CHF + BTC + + - Auslagenart + Datum Beschreibung Betrag diff --git a/kaform.js b/kaform.js index c2de27c..5cd27d0 100644 --- a/kaform.js +++ b/kaform.js @@ -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 += `${a_type} - `; +// e += `${a_type} +// `; // add coluemn for a_type (Auslagenart) // e += ` `; @@ -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"){