Changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user