Einheit mit in die Datenbank

This commit is contained in:
rxf
2023-06-08 10:05:02 +02:00
parent 027d0fd82e
commit 0b82819524
4 changed files with 243 additions and 4 deletions

View File

@@ -10,6 +10,9 @@ document.addEventListener('DOMContentLoaded', async function () {
let ret = await getData()
let schema = ret.data
if(curEinheit === 0) {
curEinheit = schema.einheit
}
fillSchema(schema)
document.querySelector('#sptab').addEventListener('click', markField);
@@ -122,7 +125,7 @@ document.addEventListener('DOMContentLoaded', async function () {
}
setArray.push(elem)
}
let schema = {curdate: startdate, months: monthArray, years: yearsArray, data: setArray}
let schema = {curdate: startdate, months: monthArray, years: yearsArray, data: setArray, einheit: curEinheit}
await storeData(schema)
}