Compare commits

...

2 Commits

Author SHA1 Message Date
67d2a05ac4 #37 open for testing
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 16s
Build and Push Docker Images / build-frontend (push) Successful in 6m17s
2026-01-08 22:54:55 +01:00
b95d539907 Fix Search and Option Display #38 2026-01-08 22:51:18 +01:00

View File

@@ -117,6 +117,8 @@ const totalCalculated = computed(() => {
if(account.taxType === "19" && account.amountTax) {
totalAmount19Tax += account.amountTax
} else if(account.taxType === "7" && account.amountTax) {
totalAmount7Tax += account.amountTax
}
})
@@ -125,6 +127,7 @@ const totalCalculated = computed(() => {
return {
totalNet,
totalAmount19Tax,
totalAmount7Tax,
totalGross
}
@@ -392,6 +395,10 @@ const findIncomingInvoiceErrors = computed(() => {
<td>Gesamt exkl. Steuer: </td>
<td class="text-right">{{totalCalculated.totalNet.toFixed(2).replace(".",",")}} €</td>
</tr>
<tr>
<td>7% Steuer: </td>
<td class="text-right">{{totalCalculated.totalAmount7Tax.toFixed(2).replace(".",",")}} €</td>
</tr>
<tr>
<td>19% Steuer: </td>
<td class="text-right">{{totalCalculated.totalAmount19Tax.toFixed(2).replace(".",",")}} €</td>
@@ -441,7 +448,7 @@ const findIncomingInvoiceErrors = computed(() => {
value-attribute="id"
searchable
:disabled="mode === 'show'"
:search-attributes="['label']"
:search-attributes="['label','name','description','number']"
searchable-placeholder="Suche..."
v-model="item.costCentre"
class="flex-auto"
@@ -450,10 +457,10 @@ const findIncomingInvoiceErrors = computed(() => {
{{costcentres.find(i => i.id === item.costCentre) ? costcentres.find(i => i.id === item.costCentre).name : "Keine Kostenstelle ausgewählt" }}
</template>
<template #option="{option}">
<span v-if="option.vehicle">Fahrzeug - {{option.name}}</span>
<span v-else-if="option.project">Projekt - {{option.name}}</span>
<span v-else-if="option.inventoryitem">Inventarartikel - {{option.name}}</span>
<span v-else>{{option.name}}</span>
<span v-if="option.vehicle">{{option.number}} - Fahrzeug - {{option.name}}</span>
<span v-else-if="option.project">{{option.number}} - Projekt - {{option.name}}</span>
<span v-else-if="option.inventoryitem">{{option.number}} - Inventarartikel - {{option.name}}</span>
<span v-else>{{option.number}} - {{option.name}}</span>
</template>
</USelectMenu>