Added Name Edition to Company Customers
This commit is contained in:
@@ -939,6 +939,7 @@ const getDocumentData = () => {
|
|||||||
},*/
|
},*/
|
||||||
recipient: [
|
recipient: [
|
||||||
customerData.name,
|
customerData.name,
|
||||||
|
... customerData.nameAddition ? [customerData.nameAddition] : [],
|
||||||
... contactData ? [`${contactData.firstName} ${contactData.lastName}`] : [],
|
... contactData ? [`${contactData.firstName} ${contactData.lastName}`] : [],
|
||||||
itemInfo.value.address.street,
|
itemInfo.value.address.street,
|
||||||
... itemInfo.value.address.special ? [itemInfo.value.address.special] : [],
|
... itemInfo.value.address.special ? [itemInfo.value.address.special] : [],
|
||||||
@@ -1531,6 +1532,9 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
@change="setCustomerData"
|
@change="setCustomerData"
|
||||||
class="flex-auto"
|
class="flex-auto"
|
||||||
>
|
>
|
||||||
|
<template #option="{option}">
|
||||||
|
{{option.name}}{{option.nameAddition}}
|
||||||
|
</template>
|
||||||
<UButton
|
<UButton
|
||||||
:color="itemInfo.customer ? 'primary' : 'rose'"
|
:color="itemInfo.customer ? 'primary' : 'rose'"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
@@ -184,6 +184,13 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
disabledFunction: function (item) {
|
disabledFunction: function (item) {
|
||||||
return !item.isCompany
|
return !item.isCompany
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
key: "nameAddition",
|
||||||
|
label: "Firmenname Zusatz",
|
||||||
|
inputType: "text",
|
||||||
|
disabledFunction: function (item) {
|
||||||
|
return !item.isCompany
|
||||||
|
},
|
||||||
},{
|
},{
|
||||||
key: "salutation",
|
key: "salutation",
|
||||||
label: "Anrede",
|
label: "Anrede",
|
||||||
@@ -2617,6 +2624,8 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
name = "Nachname"
|
name = "Nachname"
|
||||||
} else if(key === "name") {
|
} else if(key === "name") {
|
||||||
name = "Name"
|
name = "Name"
|
||||||
|
} else if(key === "nameAddition") {
|
||||||
|
name = "Name Zusatz"
|
||||||
} else if(key === "approved") {
|
} else if(key === "approved") {
|
||||||
name = "Genehmigt"
|
name = "Genehmigt"
|
||||||
} else if(key === "manufacturer") {
|
} else if(key === "manufacturer") {
|
||||||
@@ -2710,7 +2719,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
|
|
||||||
let text = ""
|
let text = ""
|
||||||
if(prop.type === "updated" && newVal !== "-" && oldVal !== "-") {
|
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 === "-") {
|
} else if(prop.type === "updated" && newVal !== "-" && oldVal === "-") {
|
||||||
text = `Hinzugefügt: ${name} "${newVal}"`
|
text = `Hinzugefügt: ${name} "${newVal}"`
|
||||||
} else if(prop.type === "created") {
|
} else if(prop.type === "created") {
|
||||||
|
|||||||
Reference in New Issue
Block a user