This commit is contained in:
2025-01-20 11:01:28 +01:00
parent e655d9cecd
commit 33818033a4
3 changed files with 6 additions and 5 deletions

View File

@@ -109,10 +109,12 @@ const calculateAllocatedSum = computed(() => {
let startingAmount = 0
itemInfo.value.statementallocations.forEach(item => {
console.log(item)
if(item.cd_id) {
startingAmount = startingAmount + item.amount
} else if(item.ii_id) {
startingAmount = Number(startingAmount) - item.amount
startingAmount = Number(startingAmount) + item.amount
}
})

View File

@@ -57,7 +57,7 @@ const itemInfo = ref({
//Functions
const setupPage = async () => {
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)
}
console.log(itemInfo.value)

View File

@@ -98,7 +98,6 @@ const columns = computed(() => templateColumns.filter((column) => selectedColumn
<template #right>
<UTooltip title="In der Beta nicht verfügbar">
<UButton
:disabled="true"
@click="showEmailAddressModal = true"
>
+ 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' }"
>
<template #profiles-data="{row}">
{{row.profiles.map(i => profiles.find(x => x.id === i).fullName).join(", ")}}
{{row.profiles}}
</template>
<template #mailboxes-data="{row}">
{{row.mailboxes.map(i => i.name).join(", ")}}
{{row.mailboxes}}
</template>
</UTable>
</template>