Changes
This commit is contained in:
@@ -109,10 +109,12 @@ const calculateAllocatedSum = computed(() => {
|
|||||||
let startingAmount = 0
|
let startingAmount = 0
|
||||||
|
|
||||||
itemInfo.value.statementallocations.forEach(item => {
|
itemInfo.value.statementallocations.forEach(item => {
|
||||||
|
console.log(item)
|
||||||
|
|
||||||
if(item.cd_id) {
|
if(item.cd_id) {
|
||||||
startingAmount = startingAmount + item.amount
|
startingAmount = startingAmount + item.amount
|
||||||
} else if(item.ii_id) {
|
} else if(item.ii_id) {
|
||||||
startingAmount = Number(startingAmount) - item.amount
|
startingAmount = Number(startingAmount) + item.amount
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const itemInfo = ref({
|
|||||||
//Functions
|
//Functions
|
||||||
const setupPage = async () => {
|
const setupPage = async () => {
|
||||||
if((mode.value === "show" || mode.value === "edit" ) && route.params.id){
|
if((mode.value === "show" || mode.value === "edit" ) && route.params.id){
|
||||||
itemInfo.value = await dataStore.getIncomingInvoiceById(Number(route.params.id))
|
itemInfo.value = await useSupabaseSelectSingle("incominginvoices",route.params.id)
|
||||||
//currentDocument.value = await dataStore.getDocumentById(currentVendorInvoice.value.document)
|
//currentDocument.value = await dataStore.getDocumentById(currentVendorInvoice.value.document)
|
||||||
}
|
}
|
||||||
console.log(itemInfo.value)
|
console.log(itemInfo.value)
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ const columns = computed(() => templateColumns.filter((column) => selectedColumn
|
|||||||
<template #right>
|
<template #right>
|
||||||
<UTooltip title="In der Beta nicht verfügbar">
|
<UTooltip title="In der Beta nicht verfügbar">
|
||||||
<UButton
|
<UButton
|
||||||
:disabled="true"
|
|
||||||
@click="showEmailAddressModal = true"
|
@click="showEmailAddressModal = true"
|
||||||
>
|
>
|
||||||
+ E-Mail Konto
|
+ E-Mail Konto
|
||||||
@@ -115,10 +114,10 @@ const columns = computed(() => templateColumns.filter((column) => selectedColumn
|
|||||||
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine E-Mail Konten anzuzeigen' }"
|
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine E-Mail Konten anzuzeigen' }"
|
||||||
>
|
>
|
||||||
<template #profiles-data="{row}">
|
<template #profiles-data="{row}">
|
||||||
{{row.profiles.map(i => profiles.find(x => x.id === i).fullName).join(", ")}}
|
{{row.profiles}}
|
||||||
</template>
|
</template>
|
||||||
<template #mailboxes-data="{row}">
|
<template #mailboxes-data="{row}">
|
||||||
{{row.mailboxes.map(i => i.name).join(", ")}}
|
{{row.mailboxes}}
|
||||||
</template>
|
</template>
|
||||||
</UTable>
|
</UTable>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user