Merge branch 'devCorrected' into 'beta'

Dev corrected

See merge request fedeo/software!56
This commit is contained in:
2025-12-28 13:53:52 +00:00
4 changed files with 13 additions and 11 deletions

View File

@@ -339,8 +339,7 @@ const links = computed(() => {
},{ },{
label: "Export", label: "Export",
to: "/export", to: "/export",
icon: "i-heroicons-clipboard-document-list", icon: "i-heroicons-clipboard-document-list"
disabled: true
} }
] ]
} }

View File

@@ -26,13 +26,13 @@ const setupPage = async () => {
incominginvoices.value = (await useEntities("incominginvoices").select("*, vendor(*)")) incominginvoices.value = (await useEntities("incominginvoices").select("*, vendor(*)"))
items.value = await Promise.all(items.value.map(async (i) => { items.value = await Promise.all(items.value.map(async (i) => {
let renderedAllocationsTemp = await renderedAllocations(i.id) // let renderedAllocationsTemp = await renderedAllocations(i.id)
let saldo = getSaldo(renderedAllocationsTemp) // let saldo = getSaldo(renderedAllocationsTemp)
return { return {
...i, ...i,
saldo: saldo, // saldo: saldo,
allocations: renderedAllocationsTemp.length, // allocations: renderedAllocationsTemp.length,
} }
})) }))
@@ -103,13 +103,13 @@ const templateColumns = [
},{ },{
key: "label", key: "label",
label: "Name" label: "Name"
},{ },/*{
key: "allocations", key: "allocations",
label: "Buchungen" label: "Buchungen"
},{ },{
key: "saldo", key: "saldo",
label: "Saldo" label: "Saldo"
}, { },*/ {
key: "description", key: "description",
label: "Beschreibung" label: "Beschreibung"
}, },
@@ -166,7 +166,7 @@ setupPage()
</UDashboardNavbar> </UDashboardNavbar>
<UDashboardToolbar> <UDashboardToolbar>
<template #right> <template #right>
<USelectMenu <!-- <USelectMenu
v-model="selectedColumns" v-model="selectedColumns"
icon="i-heroicons-adjustments-horizontal-solid" icon="i-heroicons-adjustments-horizontal-solid"
:options="templateColumns" :options="templateColumns"
@@ -178,7 +178,7 @@ setupPage()
<template #label> <template #label>
Spalten Spalten
</template> </template>
</USelectMenu> </USelectMenu>-->
<USelectMenu <USelectMenu
icon="i-heroicons-adjustments-horizontal-solid" icon="i-heroicons-adjustments-horizontal-solid"
multiple multiple

View File

@@ -16,10 +16,13 @@ const route = useRoute()
const bankstatements = ref([]) const bankstatements = ref([])
const bankaccounts = ref([]) const bankaccounts = ref([])
const filterAccount = ref([])
const setupPage = async () => { const setupPage = async () => {
bankstatements.value = (await useEntities("bankstatements").select("*, statementallocations(*)", "date", false)) bankstatements.value = (await useEntities("bankstatements").select("*, statementallocations(*)", "date", false))
bankaccounts.value = await useEntities("bankaccounts").select() bankaccounts.value = await useEntities("bankaccounts").select()
if(bankaccounts.value.length > 0) filterAccount.value = bankaccounts.value
} }
const templateColumns = [ const templateColumns = [
@@ -58,7 +61,6 @@ const clearSearchString = () => {
searchString.value = '' searchString.value = ''
} }
const filterAccount = ref(bankaccounts.value || [])
const displayCurrency = (value, currency = "€") => { const displayCurrency = (value, currency = "€") => {
return `${Number(value).toFixed(2).replace(".",",")} ${currency}` return `${Number(value).toFixed(2).replace(".",",")} ${currency}`

View File

@@ -1281,6 +1281,7 @@ const saveSerialInvoice = async () => {
payment_type: itemInfo.value.payment_type, payment_type: itemInfo.value.payment_type,
deliveryDateType: "Leistungszeitraum", deliveryDateType: "Leistungszeitraum",
createdBy: itemInfo.value.createdBy, createdBy: itemInfo.value.createdBy,
created_by: itemInfo.value.created_by,
title: itemInfo.value.title, title: itemInfo.value.title,
description: itemInfo.value.description, description: itemInfo.value.description,
startText: itemInfo.value.startText, startText: itemInfo.value.startText,