1
0
Fork 0

first row shows position no, it is possible to add positions w/o voucher

This commit is contained in:
7u83 2020-04-16 19:38:24 +00:00
parent 498575047a
commit 6e6a0a086a
2 changed files with 10 additions and 9 deletions

1
ka.php
View File

@ -247,6 +247,7 @@ Grund für abweichende kontoinhabende Person"></textarea>
<thead> <thead>
<tr> <tr>
<!-- <th>Auslagenart</th>--> <!-- <th>Auslagenart</th>-->
<th>Pos.</th>
<th>Datum</th> <th>Datum</th>
<th>Beschreibung</th> <th>Beschreibung</th>
<th>Betrag</th> <th>Betrag</th>

View File

@ -6,7 +6,7 @@ function renumberTableRows(){
var row_no=1; var row_no=1;
var table = document.getElementById("tabbody"); var table = document.getElementById("tabbody");
for (var i = 0, row; row = table.rows[i]; i++) { for (var i = 0, row; row = table.rows[i]; i++) {
// row.cells[0].innerHTML=row_no++; row.cells[0].innerHTML=row_no++;
} }
return i; return i;
} }
@ -149,8 +149,8 @@ function addTableRow(){
var children = target.children; var children = target.children;
if (!children.length){ if (!children.length){
showAlert("Bitte lade mindestens einen Beleg hoch!"); // showAlert("Bitte lade mindestens einen Beleg hoch!");
return; // return;
} }
@ -159,7 +159,7 @@ function addTableRow(){
/* a_type = "Hello";*/ /* a_type = "Hello";*/
var e=""; var e="<td></td>";
// add column for position no // add column for position no
// e += `<td>${a_type} // e += `<td>${a_type}
@ -213,7 +213,7 @@ function addTableRow(){
$node.append(element); $node.append(element);
element.innerHTML=(e); element.innerHTML=(e);
// renumberTableRows(); renumberTableRows();
currentRowId++; currentRowId++;
reset2(); reset2();
disableCurrency(); disableCurrency();