Remodel of Profile System
Added isCompany to Customers changes in workingtimes.vue
This commit is contained in:
@@ -54,7 +54,7 @@ const tabItems = computed(() => {
|
||||
},
|
||||
{
|
||||
label: "Vorschau",
|
||||
disabled: !itemInfo.value.customer && !itemInfo.value.contact
|
||||
disabled: !itemInfo.value.customer
|
||||
}
|
||||
]
|
||||
})
|
||||
@@ -259,7 +259,10 @@ const getDocumentData = () => {
|
||||
//Compile Start & EndText
|
||||
const templateStartText = Handlebars.compile(itemInfo.value.startText);
|
||||
const templateEndText = Handlebars.compile(itemInfo.value.endText);
|
||||
console.log(templateStartText({vorname: contactData.firstName, nachname: contactData.lastName}))
|
||||
console.log(templateStartText({
|
||||
vorname: contactData ? contactData.firstName : "",
|
||||
nachname: contactData ? contactData.lastName : ""
|
||||
}))
|
||||
console.log(templateEndText({zahlungsziel_in_tagen: 14}))
|
||||
|
||||
|
||||
@@ -289,7 +292,10 @@ const getDocumentData = () => {
|
||||
title: itemInfo.value.title,
|
||||
description: itemInfo.value.description,
|
||||
endText: templateEndText({zahlungsziel_in_tagen: itemInfo.value.paymentDays}),
|
||||
startText: templateStartText({vorname: contactData.firstName, nachname: contactData.lastName}),
|
||||
startText: templateStartText({
|
||||
vorname: contactData ? contactData.firstName : "",
|
||||
nachname: contactData ? contactData.lastName : ""
|
||||
}),
|
||||
rows: rows,
|
||||
total: documentTotal.value
|
||||
}
|
||||
@@ -504,9 +510,11 @@ setupPage()
|
||||
class="flex-auto"
|
||||
>
|
||||
<UButton
|
||||
:color="itemInfo.contact ? 'primary' : 'rose'"
|
||||
color="none"
|
||||
variant="outline"
|
||||
class="flex-1 justify-between">
|
||||
class="flex-1 justify-between"
|
||||
:disabled="!itemInfo.customer"
|
||||
>
|
||||
{{dataStore.getContactById(itemInfo.contact) ? dataStore.getContactById(itemInfo.contact).fullName : "Kein Kontakt 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']" />
|
||||
|
||||
Reference in New Issue
Block a user