From 557d0eff2fe5615806c830b247ad0bd55d2e5aaf Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 13 May 2025 15:43:59 +0200 Subject: [PATCH] Fixed Texttemplates and Title Import from Copy --- components/copyCreatedDocumentModal.vue | 17 ++++++++++------- pages/createDocument/show/[id].vue | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/components/copyCreatedDocumentModal.vue b/components/copyCreatedDocumentModal.vue index a06010a..1c3038b 100644 --- a/components/copyCreatedDocumentModal.vue +++ b/components/copyCreatedDocumentModal.vue @@ -8,13 +8,17 @@ const props = defineProps({ type: String, required: true }, + type: { + type: String, + required: true + }, }) const emit = defineEmits(["updateNeeded","returnData"]) -const documentTypeToUse = ref("invoices") +const documentTypeToUse = ref(props.type) const optionsToImport = ref({ taxType: true, customer: true, @@ -29,11 +33,10 @@ const optionsToImport = ref({ contactPerson: true, plant: true, project:true, - title: true, description: true, - startText: true, + startText: false, rows: true, - endText: true, + endText: false, }) const mappings = ref({ @@ -50,7 +53,6 @@ const mappings = ref({ contactPerson: "Ansprechpartner Mitarbeiter", plant: "Objekt", project: "Projekt", - title: "Titel", description: "Beschreibung", startText: "Einleitung", rows: "Positionen", @@ -84,9 +86,10 @@ const startImport = () => { + :label="mappings[key]" + />