#* Customization for Address Salutation*#
}{#macro (showDeliveryAddressForInvoice $document $showContactNb)
}{
#*
We first try to check if there is a address associated with invoice shipment. If yes, then use this one.
*#
}{#if($document.docShipment && $document.docShipment.actualContactAddress && $document.docShipment.actualContactAddress.formattedAddress.addressLines.size()!=0)
}{#if($showContactNb == "true" && $document.docShipment.contact)
}{$document.docShipment.contact.contactNumber}
{#end
}{#if ($document.docShipment.contact.structure.structureName)
}{$document.docShipment.contact.structure.structureName
}
{#end
}{#if ($document.docShipment.contact.addressSalutation && !$document.docShipment.contact.structure.structureName)
}{$document.docShipment.contact.addressSalutation
}
{#end
}{#if ($document.docShipment.contact.firstName)
}{$document.docShipment.contact.firstName
}{#end
}{#if ($document.docShipment.contact.lastName)
}{$document.docShipment.co |