{template_event name="quiqqer::erpAccountingTemplate::header::begin" entityType=$entityType}
{assign var=Logo value=\QUI\ERP\Defaults::getLogo()}
{locale group="quiqqer/erp-accounting-templates" var="header" shopownerAdressShort=QUI\ERP\Defaults::getShortAddress()}
{if $Address} {$Address->getDisplay()} {/if}

{$Dunning->getDunningLevel()->getTitle()}

{if $Customer} {if $Customer->getCustomerNo()} {else} {/if} {/if} {if $Editor && $Editor->getName() !== ''} {/if} {if isset($Invoice) && $Invoice && method_exists($Invoice, 'getData') && $Invoice->getData('contract') } {assign var=contract value=$Invoice->getData('contract')} {/if}
{locale group="quiqqer/erp-accounting-templates" var="dunning.label.invoice_id"} {$Invoice->getId()}
{locale group="quiqqer/erp-accounting-templates" var="body.date"} {$Dunning->getCreateDateFormatted()}
{locale group="quiqqer/erp-accounting-templates" var="body.customerId"}{$Customer->getCustomerNo()}{$Customer->getId()}
{locale group="quiqqer/erp-accounting-templates" var="body.editor"} {$Editor->getName()}
{locale group="quiqqer/erp-accounting-templates" var="body.contract.id"} {erpGetPrefixedNumber assign=prefixedNumber var=$contract.hash} {$prefixedNumber}
{template_event name="quiqqer::erpAccountingTemplate::header::end" entityType=$entityType}