Doppelte Abschlagsrechnung in Auswahl entfernen
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user