From a84f906d4321e4c1a16a36952ff5b705bf67b9f5 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sun, 16 Feb 2025 18:34:54 +0100 Subject: [PATCH] Changed Recipient Rendering to Array --- pages/createDocument/edit/[[id]].vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index 6b587c3..79604f9 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -744,14 +744,22 @@ const getDocumentData = () => { type: itemInfo.value.type, taxType: itemInfo.value.taxType, adressLine: `${businessInfo.name}, ${businessInfo.street}, ${businessInfo.zip} ${businessInfo.city}`, - recipient: { + /*recipient: { name: customerData.name, contact: contactData ? `${contactData.firstName} ${contactData.lastName}` : "", street: itemInfo.value.address.street || customerData.infoData.street, special: itemInfo.value.address.special || customerData.infoData.special, city: itemInfo.value.address.city || customerData.infoData.city, zip: itemInfo.value.address.zip || customerData.infoData.zip - }, + },*/ + recipient: [ + customerData.name, + ... contactData ? [`${contactData.firstName} ${contactData.lastName}`] : [], + itemInfo.value.address.street, + ... itemInfo.value.address.special ? [itemInfo.value.address.special] : [], + `${itemInfo.value.address.zip} ${itemInfo.value.address.city}`, + + ], /*info: { customerNumber: customerData.customerNumber, documentNumber: itemInfo.value.documentNumber,