From 24febf4c95559080068ca3f14478d619c8aee0ca Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 19 May 2026 15:12:27 +0200 Subject: [PATCH] Dateityp-Belegarten als Auswahl pflegen --- frontend/stores/data.js | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/frontend/stores/data.js b/frontend/stores/data.js index 5d6cb80..d0bfffa 100644 --- a/frontend/stores/data.js +++ b/frontend/stores/data.js @@ -70,6 +70,23 @@ export const useDataStore = defineStore('data', () => { + const filetagCreatedDocumentTypeOptions = [ + { key: "invoices", label: "Rechnung" }, + { key: "serialInvoices", label: "Serienrechnung" }, + { key: "advanceInvoices", label: "Abschlagsrechnung" }, + { key: "cancellationInvoices", label: "Storno" }, + { key: "quotes", label: "Angebot" }, + { key: "costEstimates", label: "Kostenschätzung" }, + { key: "confirmationOrders", label: "Auftragsbestätigung" }, + { key: "deliveryNotes", label: "Lieferschein" }, + { key: "packingSlips", label: "Packschein" }, + ] + + const filetagIncomingDocumentTypeOptions = [ + { key: "invoices", label: "Eingangsrechnung" }, + { key: "reminders", label: "Mahnung" }, + ] + const dataTypes = { tasks: { isArchivable: true, @@ -2376,13 +2393,19 @@ export const useDataStore = defineStore('data', () => { { key: "createdDocumentType", label: "Ausgangsbeleg-Typ", - inputType: "text", + inputType: "select", + selectValueAttribute: "key", + selectOptionAttribute: "label", + selectManualOptions: filetagCreatedDocumentTypeOptions, inputColumn: "Automatik", }, { key: "incomingDocumentType", label: "Eingangsbeleg-Typ", - inputType: "text", + inputType: "select", + selectValueAttribute: "key", + selectOptionAttribute: "label", + selectManualOptions: filetagIncomingDocumentTypeOptions, inputColumn: "Automatik", }, {