{template_event name="quiqqer::erpAccountingTemplate::body::begin" entityType=$entityType}
{if !empty($viewData['contact_person'])}

{locale group="quiqqer/erp-accounting-templates" var="body.orderedBy"}: {$viewData['contact_person']}

{/if} {if !empty($viewData['project_name'])}

{locale group="quiqqer/erp-accounting-templates" var="body.project"}: {$viewData['project_name']}

{/if} {if $this->getDeliveryDate() !== '-'}

{locale group="quiqqer/erp-accounting-templates" var="SalesOrder.body.delivery_date"}: {$this->getDeliveryDate()}

{/if}

{if $this->getSalesOrder()->getAttribute('order_date')} {locale group="quiqqer/erp-accounting-templates" var="SalesOrder.body.text_intro_date" orderDate=$this->getOrderDate() } {else} {locale group="quiqqer/erp-accounting-templates" var="SalesOrder.body.text_intro"} {/if} {if $this->getSalesOrder()->getData('offerId')} {locale group="quiqqer/erp-accounting-templates" var="SalesOrder.body.text_with_offer_reference" offerId=$this->getSalesOrder()->getData('offerId') } {else} {locale group="quiqqer/erp-accounting-templates" var="SalesOrder.body.text" } {/if}

{$ArticleList->toHTML()}
{if !empty($this->getAttribute('additional_text'))} {$this->getAttribute('additional_text')} {/if}
{template_event name="quiqqer::erpAccountingTemplate::body::begin" entityType=$entityType}