Ausgehende SEPA-Mandate einführen #183

This commit is contained in:
2026-05-15 17:47:11 +02:00
parent 683d073b6e
commit 44017a768b
19 changed files with 513 additions and 8 deletions

View File

@@ -170,7 +170,7 @@ const setupQuery = () => {
Object.keys(data).forEach(key => {
if (dataType.templateColumns.find(i => i.key === key)) {
if (["customer", "contract", "plant", "contact", "project"].includes(key)) {
if (["customer", "contract", "plant", "contact", "project", "outgoingsepamandate", "bankaccount"].includes(key)) {
item.value[key] = Number(data[key])
} else {
item.value[key] = data[key]

View File

@@ -146,6 +146,11 @@ const links = computed(() => {
to: "/incomingInvoices",
icon: "i-heroicons-document-text",
} : null,
featureEnabled("outgoingsepamandates") ? {
label: "SEPA-Mandate",
to: "/standardEntity/outgoingsepamandates",
icon: "i-heroicons-identification",
} : null,
(featureEnabled("incomingInvoices") || featureEnabled("banking")) ? {
label: "Abschreibungen",
to: "/accounting/depreciation",

View File

@@ -0,0 +1,16 @@
<script setup>
const props = defineProps({
row: {
type: Object,
required: true,
default: {}
}
})
</script>
<template>
<span v-if="props.row.bankaccount">
{{ props.row.bankaccount.displayLabel || props.row.bankaccount.description || props.row.bankaccount.id }}
</span>
<span v-else>-</span>
</template>

View File

@@ -0,0 +1,26 @@
<script setup>
const props = defineProps({
row: {
type: Object,
required: true,
default: {}
},
inShow: {
type: Boolean,
default: false
}
})
</script>
<template>
<div v-if="props.row.outgoingsepamandate">
<nuxt-link
v-if="props.inShow"
:to="`/standardEntity/outgoingsepamandates/show/${props.row.outgoingsepamandate.id}`"
>
{{ props.row.outgoingsepamandate.reference }}
</nuxt-link>
<span v-else>{{ props.row.outgoingsepamandate.reference }}</span>
</div>
<span v-else>-</span>
</template>