Fix Banking and Profiles
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 14s
Build and Push Docker Images / build-frontend (push) Successful in 59s

This commit is contained in:
2026-03-23 08:29:54 +01:00
parent e0e99ba6f5
commit 4db753d34a
2 changed files with 54 additions and 21 deletions

View File

@@ -582,20 +582,20 @@ setup()
<div class="flex gap-1">
<USelectMenu
class="w-full"
:options="accounts"
value-attribute="id"
option-attribute="label"
:items="accounts"
value-key="id"
label-key="label"
v-model="accountToSave"
searchable
:search-attributes="['number','label']"
:search-input="{ placeholder: 'Konto suchen...' }"
:filter-fields="['number','label']"
placeholder="Konto suchen..."
>
<template #label>
<template #default>
<span v-if="accountToSave"
class="truncate">{{ accounts.find(i => i.id === accountToSave).number }} - {{ accounts.find(i => i.id === accountToSave).label }}</span>
<span v-else>Direkt verbuchen...</span>
</template>
<template #option="{option}">
<template #item-label="{ item: option }">
<span class="font-mono text-xs text-gray-500 mr-2">{{ option.number }}</span> {{ option.label }}
</template>
</USelectMenu>
@@ -620,21 +620,21 @@ setup()
<div v-if="showMoreWithoutRecipe"
class="mt-4 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 grid grid-cols-1 md:grid-cols-3 gap-3">
<USelectMenu :options="ownaccounts" value-attribute="id" option-attribute="name" v-model="ownAccountToSave"
searchable placeholder="Eigenes Konto">
<template #label>
<USelectMenu :items="ownaccounts" value-key="id" label-key="name" v-model="ownAccountToSave"
:search-input="{ placeholder: 'Eigenes Konto' }" :filter-fields="['number','name']" placeholder="Eigenes Konto">
<template #default>
{{ ownAccountToSave ? ownaccounts.find(i => i.id === ownAccountToSave).name : 'Eigenes Konto' }}
</template>
</USelectMenu>
<USelectMenu :options="customers" value-attribute="id" option-attribute="name"
v-model="customerAccountToSave" searchable placeholder="Kunde (Guthaben)">
<template #label>
<USelectMenu :items="customers" value-key="id" label-key="name"
v-model="customerAccountToSave" :search-input="{ placeholder: 'Kunde (Guthaben)' }" :filter-fields="['name','customerNumber']" placeholder="Kunde (Guthaben)">
<template #default>
{{ customerAccountToSave ? customers.find(i => i.id === customerAccountToSave).name : 'Kunde' }}
</template>
</USelectMenu>
<USelectMenu :options="vendors" value-attribute="id" option-attribute="name" v-model="vendorAccountToSave"
searchable placeholder="Lieferant (Guthaben)">
<template #label>
<USelectMenu :items="vendors" value-key="id" label-key="name" v-model="vendorAccountToSave"
:search-input="{ placeholder: 'Lieferant (Guthaben)' }" :filter-fields="['name','vendorNumber']" placeholder="Lieferant (Guthaben)">
<template #default>
{{ vendorAccountToSave ? vendors.find(i => i.id === vendorAccountToSave).name : 'Lieferant' }}
</template>
</USelectMenu>