From 543952dbf86d2ddb4c75abfe25037c72724bffc2 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Thu, 23 Apr 2026 17:36:32 +0200 Subject: [PATCH] Manuelle Buchungen Select ohne Leerwert absichern --- frontend/pages/accounting/manual-bookings.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/pages/accounting/manual-bookings.vue b/frontend/pages/accounting/manual-bookings.vue index cb2624e..83633c0 100644 --- a/frontend/pages/accounting/manual-bookings.vue +++ b/frontend/pages/accounting/manual-bookings.vue @@ -16,7 +16,7 @@ const expandedDebitGroups = ref([]) const expandedCreditGroups = ref([]) const DATEV_TAX_KEY_ITEMS = [ - { value: "", label: "Ohne Steuerschlüssel" }, + { value: "__none__", label: "Ohne Steuerschlüssel" }, { value: "9", label: "9 - Vorsteuer 19 %" }, { value: "8", label: "8 - Vorsteuer 7 %" }, { value: "19", label: "19 - EU Vorsteuer 19 %" }, @@ -28,7 +28,7 @@ const form = reactive({ amount: null, debit: "", credit: "", - datevTaxKey: "", + datevTaxKey: "__none__", description: "" }) @@ -196,7 +196,7 @@ const resetForm = () => { form.amount = null form.debit = "" form.credit = "" - form.datevTaxKey = "" + form.datevTaxKey = "__none__" form.description = "" debitSearch.value = "" creditSearch.value = "" @@ -215,7 +215,7 @@ const saveBooking = async () => { const payload = { manualBookingDate: form.manualBookingDate, amount: Number(form.amount), - datevTaxKey: form.datevTaxKey || null, + datevTaxKey: form.datevTaxKey === "__none__" ? null : form.datevTaxKey, description: form.description || "Manuelle Buchung", ...buildSidePayload(form.debit, "debit"), ...buildSidePayload(form.credit, "credit")