Changes
This commit is contained in:
@@ -229,7 +229,7 @@ const setDocumentTypeConfig = (withTexts = false) => {
|
|||||||
|
|
||||||
const setCustomerData = () => {
|
const setCustomerData = () => {
|
||||||
|
|
||||||
let customer = dataStore.getCustomerById(itemInfo.value.customer)
|
let customer = customers.find(i => i.id === itemInfo.value.customer)
|
||||||
itemInfo.value.contact = null
|
itemInfo.value.contact = null
|
||||||
if(customer) {
|
if(customer) {
|
||||||
itemInfo.value.address.street = customer.infoData.street
|
itemInfo.value.address.street = customer.infoData.street
|
||||||
@@ -530,7 +530,7 @@ const processDieselPosition = () => {
|
|||||||
|
|
||||||
const getDocumentData = () => {
|
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 contactData = dataStore.getContactById(itemInfo.value.contact)
|
||||||
let businessInfo = profileStore.ownTenant.businessInfo
|
let businessInfo = profileStore.ownTenant.businessInfo
|
||||||
|
|
||||||
@@ -1016,7 +1016,7 @@ const setRowData = (row) => {
|
|||||||
variant="outline"
|
variant="outline"
|
||||||
class="w-full"
|
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']" />
|
<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>
|
</UButton>
|
||||||
@@ -1040,9 +1040,9 @@ const setRowData = (row) => {
|
|||||||
title="Info"
|
title="Info"
|
||||||
>
|
>
|
||||||
<template #description>
|
<template #description>
|
||||||
Kundennr: {{dataStore.getCustomerById(itemInfo.customer).customerNumber}}<br>
|
Kundennr: {{customers.find(i => i.id === row.customer).customerNumber}}<br>
|
||||||
Typ: {{dataStore.getCustomerById(itemInfo.customer).isCompany ? 'Firma' : 'Privat'}}<br>
|
Typ: {{customers.find(i => i.id === row.customer).isCompany ? 'Firma' : 'Privat'}}<br>
|
||||||
Notizen: <span class="truncate">{{dataStore.getCustomerById(itemInfo.customer).notes}}</span>
|
Notizen: <span class="truncate">{{customers.find(i => i.id === row.customer).notes}}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</UAlert>
|
</UAlert>
|
||||||
|
|||||||
@@ -1175,7 +1175,6 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
key: "sellingPrice",
|
key: "sellingPrice",
|
||||||
label: "Verkaufspreis",
|
label: "Verkaufspreis",
|
||||||
component: sellingPrice,
|
component: sellingPrice,
|
||||||
inputType: "number",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "servicecategories",
|
key: "servicecategories",
|
||||||
|
|||||||
Reference in New Issue
Block a user