Ausgehende SEPA-Mandate einführen #183
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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",
|
||||
|
||||
16
frontend/components/columnRenderings/bankAccount.vue
Normal file
16
frontend/components/columnRenderings/bankAccount.vue
Normal 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>
|
||||
26
frontend/components/columnRenderings/outgoingSepaMandate.vue
Normal file
26
frontend/components/columnRenderings/outgoingSepaMandate.vue
Normal 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>
|
||||
Reference in New Issue
Block a user