Remodel of Profile System

Added isCompany to Customers
changes in workingtimes.vue
This commit is contained in:
2024-03-17 11:01:19 +01:00
parent 874ff01551
commit aef8cce755
16 changed files with 349 additions and 168 deletions

View File

@@ -16,29 +16,24 @@ fs.createReadStream(path.join(__dirname, "../../input/customers.csv"), "utf-8")
//console.log(rows)
rows.forEach(i => {
if(i.Firmenname) {
let item = {
customerNumber : Number(i.Kundennummer),
tenant: tenant,
name: i.Firmenname,
infoData: {
zip: i["PLZ 1"],
city: i["Ort 1"],
ustid: i["Umsatzsteuer ID"],
street: i["Straße 1"],
special: i["Adresszusatz 1"],
country: i["Land 1"],
tel: i["Telefon 1"],
email: i["E-Mail 1"]
}
let item = {
customerNumber : Number(i.Kundennummer),
isCompany: i.Firmenname ? true : false,
tenant: tenant,
name: i.Firmenname ? i.Firmenname : i.Kontakt,
infoData: {
zip: i["PLZ 1"],
city: i["Ort 1"],
ustid: i["Umsatzsteuer ID"],
street: i["Straße 1"],
special: i["Adresszusatz 1"],
country: i["Land 1"],
tel: i["Telefon 1"],
email: i["E-Mail 1"]
}
customers.push(item)
}
customers.push(item)
})
rows.forEach(i => {