Changed Recipient Rendering to Array
This commit is contained in:
@@ -744,14 +744,22 @@ const getDocumentData = () => {
|
|||||||
type: itemInfo.value.type,
|
type: itemInfo.value.type,
|
||||||
taxType: itemInfo.value.taxType,
|
taxType: itemInfo.value.taxType,
|
||||||
adressLine: `${businessInfo.name}, ${businessInfo.street}, ${businessInfo.zip} ${businessInfo.city}`,
|
adressLine: `${businessInfo.name}, ${businessInfo.street}, ${businessInfo.zip} ${businessInfo.city}`,
|
||||||
recipient: {
|
/*recipient: {
|
||||||
name: customerData.name,
|
name: customerData.name,
|
||||||
contact: contactData ? `${contactData.firstName} ${contactData.lastName}` : "",
|
contact: contactData ? `${contactData.firstName} ${contactData.lastName}` : "",
|
||||||
street: itemInfo.value.address.street || customerData.infoData.street,
|
street: itemInfo.value.address.street || customerData.infoData.street,
|
||||||
special: itemInfo.value.address.special || customerData.infoData.special,
|
special: itemInfo.value.address.special || customerData.infoData.special,
|
||||||
city: itemInfo.value.address.city || customerData.infoData.city,
|
city: itemInfo.value.address.city || customerData.infoData.city,
|
||||||
zip: itemInfo.value.address.zip || customerData.infoData.zip
|
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: {
|
/*info: {
|
||||||
customerNumber: customerData.customerNumber,
|
customerNumber: customerData.customerNumber,
|
||||||
documentNumber: itemInfo.value.documentNumber,
|
documentNumber: itemInfo.value.documentNumber,
|
||||||
|
|||||||
Reference in New Issue
Block a user