Added Name Edition to Company Customers

This commit is contained in:
2025-05-20 16:52:17 +02:00
parent 6a68c2fbcd
commit 131a7a95b9
2 changed files with 14 additions and 1 deletions

View File

@@ -184,6 +184,13 @@ export const useDataStore = defineStore('data', () => {
disabledFunction: function (item) {
return !item.isCompany
},
}, {
key: "nameAddition",
label: "Firmenname Zusatz",
inputType: "text",
disabledFunction: function (item) {
return !item.isCompany
},
},{
key: "salutation",
label: "Anrede",
@@ -2617,6 +2624,8 @@ export const useDataStore = defineStore('data', () => {
name = "Nachname"
} else if(key === "name") {
name = "Name"
} else if(key === "nameAddition") {
name = "Name Zusatz"
} else if(key === "approved") {
name = "Genehmigt"
} else if(key === "manufacturer") {
@@ -2710,7 +2719,7 @@ export const useDataStore = defineStore('data', () => {
let text = ""
if(prop.type === "updated" && newVal !== "-" && oldVal !== "-") {
text = `Gerändert: ${name} von "${oldVal}" zu "${newVal}"`
text = `Geändert: ${name} von "${oldVal}" zu "${newVal}"`
} else if(prop.type === "updated" && newVal !== "-" && oldVal === "-") {
text = `Hinzugefügt: ${name} "${newVal}"`
} else if(prop.type === "created") {