Changed Recipient Rendering to Array

This commit is contained in:
2025-02-16 18:34:54 +01:00
parent f6c1dc1cab
commit a84f906d43

View File

@@ -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,