diff --git a/kaform.js b/kaform.js index 38fea09..78b0258 100644 --- a/kaform.js +++ b/kaform.js @@ -136,15 +136,16 @@ function addTableRow(){ showAlert("Bitte gib einen gültigen Betrag ein!"); return; } + a_amount = parseFloat(a_amount).toFixed(2); var a_currency = document.getElementById("a_currency").value; - if (!a_currency.trim().length){ +/* if (!a_currency.trim().length){ document.getElementById("a_currency").focus(); showAlert("Bitte gib eine Währung an!"); return; } - +*/ var target = document.getElementById("upload-target"+currentRowId); var children = target.children; @@ -178,7 +179,7 @@ function addTableRow(){ // add column for num - e += `${a_amount} + e += `${a_amount} EUR `; @@ -198,7 +199,8 @@ function addTableRow(){ */ - e += `${a_currency} + var ulfiles = children.length; + e += `${ulfiles} `;