Doppelte Abschlagsrechnung in Auswahl entfernen

This commit is contained in:
2026-05-19 15:25:04 +02:00
parent e29e84898b
commit 6d9bceb63f

View File

@@ -73,7 +73,6 @@ export const useDataStore = defineStore('data', () => {
const filetagCreatedDocumentTypeOptions = [ const filetagCreatedDocumentTypeOptions = [
{ key: "invoices", label: "Rechnung" }, { key: "invoices", label: "Rechnung" },
{ key: "serialInvoices", label: "Serienrechnung" }, { key: "serialInvoices", label: "Serienrechnung" },
{ key: "advanceInvoice", label: "Abschlagsrechnung" },
{ key: "advanceInvoices", label: "Abschlagsrechnung" }, { key: "advanceInvoices", label: "Abschlagsrechnung" },
{ key: "cancellationInvoices", label: "Storno" }, { key: "cancellationInvoices", label: "Storno" },
{ key: "quotes", label: "Angebot" }, { key: "quotes", label: "Angebot" },
@@ -89,6 +88,8 @@ export const useDataStore = defineStore('data', () => {
] ]
const getFiletagDocumentTypeLabel = (options, value) => { const getFiletagDocumentTypeLabel = (options, value) => {
if (value === "advanceInvoice") return "Abschlagsrechnung"
return options.find((option) => option.key === value)?.label || value return options.find((option) => option.key === value)?.label || value
} }