Changed Recipient Rendering to Array
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user