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

{locale group="quiqqer/erp-accounting-templates" var="title.offer_draft"}

{else}

{locale group="quiqqer/erp-accounting-templates" var="title.offer"}

{/if} {if $Customer} {if $Customer->getCustomerNo()} {else} {/if} {/if} {if $Editor && $Editor->getName() !== ''} {/if}
{locale group="quiqqer/erp-accounting-templates" var="offer.body.id"} {$this->getId()}
{locale group="quiqqer/erp-accounting-templates" var="body.date"} {$offerDate}
{locale group="quiqqer/erp-accounting-templates" var="body.customerId"}{$Customer->getCustomerNo()}{$Customer->getId()}
{locale group="quiqqer/erp-accounting-templates" var="body.editor"} {$Editor->getName()}
{if isset($useShipping) && $useShipping}
{locale group="quiqqer/erp-accounting-templates" var="body.deliveryAddress"}:
{if $DeliveryAddress && $DeliveryAddress->getText() !== ''} {$DeliveryAddress->getText()} {else} {locale group="quiqqer/erp-accounting-templates" var="body.deliveryAddress_like_invoiceAddress"} {/if}
{/if}
{template_event name="quiqqer::erpAccountingTemplate::header::end" entityType=$entityType}