Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypDokumentInhaltParameterBeschreibung
E-MailAlle E-MailsAbsendername{$document.metadata.fromContact.setDisplayName("your_sender_email_address")}Als Absendername wird standardmäßig der externe Name der Institution verwendet. Dieser kann mit der angegebenen Variable überschrieben werden. 
DokumenteAlle DokumenteAdresse in Kopfzeile


Code Block
#* 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.contact.lastName
}{#end
}
{#showAddress($document.docShipment.actualContactAddress $document.locale)
}{
#*
If there is no shipment contact address, then use main address of contact.
*#
}{#elseif($document.contact && $document.contact.mainAddress.rawFormattedAddress.addressLines.size()!=0)
	}{#if($showContactNb == "true")
	}{$document.contact.contactNumber}
{#end
}{#if ($document.contact.structure.structureName)
}{$document.contact.structure.structureName
}
{#end
}{#if ($document.contact.addressSalutation && !$document.contact.structure.structureName)
}{$document.contact.addressSalutation 
}
{#end
}{#if ($document.contact.firstName)
}{$document.contact.firstName 
}{#end
}{#if ($document.contact.lastName)
}{$document.contact.lastName
}{#end
}
{#showAddress($document.contact.mainAddress $document.locale)
}{#elseif($document.contact && $document.contact.displayName)
}{#if($showContactNb == "true")
	}{$document.contact.contactNumber}
{#end
}{#if ($document.contact.structure.structureName)
}{$document.contact.structure.structureName
}
{#end
}{$document.contact.displayName}{
#end}{#if($document.contact.financialInfo.legalInformation && !$ $document.contact.financialInfo.legalInformation.isEmpty())}
{#showLegalInfo($document.contact.financialInfo.legalInformation)}{
#elseif($document.contact.structure)} {#showLegalInfo($document.contact.structure.financialInfo.legalInformation)}{#end}{
#end}{#macro (showShortAddress $address $locale)
}{#foreach ($addressLine in $address.rawFormattedAddress.addressLines)}{
}{$addressLine
}{#if($counter < $address.formattedAddress.addressLines.size())
}
{#end
}{#end
}{#end}{#end}


ersetzt den Standard Adressblock mit einem angepassten, indem die Anrede in einer eigenen Zeile steht.


Vorher:


Nacher: