diff --git a/frontend/stores/data.js b/frontend/stores/data.js index 1db45ae..9052078 100644 --- a/frontend/stores/data.js +++ b/frontend/stores/data.js @@ -73,7 +73,6 @@ export const useDataStore = defineStore('data', () => { const filetagCreatedDocumentTypeOptions = [ { key: "invoices", label: "Rechnung" }, { key: "serialInvoices", label: "Serienrechnung" }, - { key: "advanceInvoice", label: "Abschlagsrechnung" }, { key: "advanceInvoices", label: "Abschlagsrechnung" }, { key: "cancellationInvoices", label: "Storno" }, { key: "quotes", label: "Angebot" }, @@ -89,6 +88,8 @@ export const useDataStore = defineStore('data', () => { ] const getFiletagDocumentTypeLabel = (options, value) => { + if (value === "advanceInvoice") return "Abschlagsrechnung" + return options.find((option) => option.key === value)?.label || value }