SEPA-Mandatsauswahlen als Wörterbücher pflegen #183

This commit is contained in:
2026-05-15 18:00:57 +02:00
parent 44017a768b
commit 8d7bc2e97c
2 changed files with 39 additions and 13 deletions

View File

@@ -56,6 +56,18 @@ import outgoingSepaMandate from "~/components/columnRenderings/outgoingSepaManda
// @ts-ignore
export const useDataStore = defineStore('data', () => {
const outgoingSepaMandateTypeOptions = [
{ key: "CORE", label: "Basislastschrift (CORE)" },
{ key: "B2B", label: "Firmenlastschrift (B2B)" }
]
const outgoingSepaSequenceTypeOptions = [
{ key: "RCUR", label: "Wiederkehrend (RCUR)" },
{ key: "OOFF", label: "Einmalig (OOFF)" },
{ key: "FRST", label: "Erstlastschrift (FRST)" },
{ key: "FNAL", label: "Letztlastschrift (FNAL)" }
]
const dataTypes = {
@@ -1224,11 +1236,9 @@ export const useDataStore = defineStore('data', () => {
required: true,
defaultValue: "CORE",
inputType: "select",
selectValueAttribute: "label",
selectManualOptions: [
{ label: "CORE" },
{ label: "B2B" }
],
selectValueAttribute: "key",
selectOptionAttribute: "label",
selectManualOptions: outgoingSepaMandateTypeOptions,
inputColumn: "Mandat",
sortable: true
},
@@ -1238,13 +1248,9 @@ export const useDataStore = defineStore('data', () => {
required: true,
defaultValue: "RCUR",
inputType: "select",
selectValueAttribute: "label",
selectManualOptions: [
{ label: "RCUR" },
{ label: "OOFF" },
{ label: "FRST" },
{ label: "FNAL" }
],
selectValueAttribute: "key",
selectOptionAttribute: "label",
selectManualOptions: outgoingSepaSequenceTypeOptions,
inputColumn: "Mandat",
sortable: true
},
@@ -2287,7 +2293,7 @@ export const useDataStore = defineStore('data', () => {
isArchivable: true,
label: "Dokumente",
labelSingle: "Dokument",
selectWithInformation: "*, files(*), statementallocations(*)",
selectWithInformation: "*, files(*), statementallocations(*), outgoingsepamandate(*)",
filters: [
{
name: "Archivierte ausblenden",
@@ -3737,5 +3743,7 @@ export const useDataStore = defineStore('data', () => {
return {
dataTypes,
documentTypesForCreation,
outgoingSepaMandateTypeOptions,
outgoingSepaSequenceTypeOptions,
}
})