Changes
This commit is contained in:
@@ -229,7 +229,7 @@ const setDocumentTypeConfig = (withTexts = false) => {
|
||||
|
||||
const setCustomerData = () => {
|
||||
|
||||
let customer = dataStore.getCustomerById(itemInfo.value.customer)
|
||||
let customer = customers.find(i => i.id === itemInfo.value.customer)
|
||||
itemInfo.value.contact = null
|
||||
if(customer) {
|
||||
itemInfo.value.address.street = customer.infoData.street
|
||||
@@ -530,7 +530,7 @@ const processDieselPosition = () => {
|
||||
|
||||
const getDocumentData = () => {
|
||||
|
||||
let customerData = dataStore.getCustomerById(itemInfo.value.customer)
|
||||
let customerData = customers.find(i => i.id === itemInfo.value.customer)
|
||||
let contactData = dataStore.getContactById(itemInfo.value.contact)
|
||||
let businessInfo = profileStore.ownTenant.businessInfo
|
||||
|
||||
@@ -1016,7 +1016,7 @@ const setRowData = (row) => {
|
||||
variant="outline"
|
||||
class="w-full"
|
||||
>
|
||||
{{dataStore.getCustomerById(itemInfo.customer) ? dataStore.getCustomerById(itemInfo.customer).name : "Kein Kunde ausgewählt"}}
|
||||
{{row.customer ?customers.find(i => i.id === row.customer).name : "Kein Kunde ausgewählt"}}
|
||||
|
||||
<UIcon name="i-heroicons-chevron-right-20-solid" class="w-5 h-5 transition-transform text-gray-400 dark:text-gray-500" :class="['transform rotate-90']" />
|
||||
</UButton>
|
||||
@@ -1040,9 +1040,9 @@ const setRowData = (row) => {
|
||||
title="Info"
|
||||
>
|
||||
<template #description>
|
||||
Kundennr: {{dataStore.getCustomerById(itemInfo.customer).customerNumber}}<br>
|
||||
Typ: {{dataStore.getCustomerById(itemInfo.customer).isCompany ? 'Firma' : 'Privat'}}<br>
|
||||
Notizen: <span class="truncate">{{dataStore.getCustomerById(itemInfo.customer).notes}}</span>
|
||||
Kundennr: {{customers.find(i => i.id === row.customer).customerNumber}}<br>
|
||||
Typ: {{customers.find(i => i.id === row.customer).isCompany ? 'Firma' : 'Privat'}}<br>
|
||||
Notizen: <span class="truncate">{{customers.find(i => i.id === row.customer).notes}}</span>
|
||||
</template>
|
||||
|
||||
</UAlert>
|
||||
|
||||
Reference in New Issue
Block a user