Added Name Edition to Company Customers
This commit is contained in:
@@ -939,6 +939,7 @@ const getDocumentData = () => {
|
||||
},*/
|
||||
recipient: [
|
||||
customerData.name,
|
||||
... customerData.nameAddition ? [customerData.nameAddition] : [],
|
||||
... contactData ? [`${contactData.firstName} ${contactData.lastName}`] : [],
|
||||
itemInfo.value.address.street,
|
||||
... itemInfo.value.address.special ? [itemInfo.value.address.special] : [],
|
||||
@@ -1531,6 +1532,9 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
||||
@change="setCustomerData"
|
||||
class="flex-auto"
|
||||
>
|
||||
<template #option="{option}">
|
||||
{{option.name}}{{option.nameAddition}}
|
||||
</template>
|
||||
<UButton
|
||||
:color="itemInfo.customer ? 'primary' : 'rose'"
|
||||
variant="outline"
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user