<#assign showShipping = order.shippingAddress?has_content && !order.pickup, showBilling = order.billingAddress?has_content && !order.sameShippingAndBilling, showBuyerShippingSection = showShipping || order.pickup, showInvoicePayment = order.invoicePayment?has_content, companyOrStoreName = (store.companyName?has_content)?then(store.companyName, store.name)>

${store.name} <@urlWithoutProtocol store.storeUrl/>

colspan="2">
<#if showBilling> ${order.billingAddress.formattedHtml} <#elseif showShipping> ${order.shippingAddress.formattedHtml} <#elseif order.shippingAddress.name?has_content>
${order.shippingAddress.name}

${customer.email}
<#if showBilling>
${order.billingAddress.phone!}
<#if order.customerFiscalCode?has_content>
${textLabels.fiscalCode} ${order.customerFiscalCode}
<#if order.customerTaxId?has_content>
${textLabels.taxId} ${order.customerTaxId}
<@extrafieldsBySection order, "customer_info"/>
${store.officeAddress.formattedHtml}

 

<#if showInvoicePayment>
${textLabels.invoicePaymentTitle?replace("{date}", "${order.invoicePayment.paymentDueDate}")}
${textLabels.invoicePaymentAccountHolderName} ${order.invoicePayment.accountHolderName}
${textLabels.invoicePaymentBankName} ${order.invoicePayment.bankName}
${textLabels.invoicePaymentIban} ${order.invoicePayment.iban}
${textLabels.invoicePaymentBic} ${order.invoicePayment.bic}
${textLabels.invoicePaymentAmountDue} ${order.invoicePayment.amountDue}
${textLabels.invoicePaymentReferenceNumber} ${order.invoicePayment.referenceNumber}
${textLabels.invoicePaymentDescription?replace("{companyName}", "${companyOrStoreName}")}

${textLabels.invoiceLabel}: ${titleInvoice} <#if invoice.dateCreated?has_content> ${textLabels.invoiceDate}: ${invoice.dateCreated} <#if order.number?has_content> ${textLabels.orderNumber}: ${order.number} <#if order.dateCreated?has_content> (${order.dateCreated}) <#if order.paymentMethod?has_content>
${textLabels.paymentMethod}: ${order.paymentMethod.name}

<#if order.paymentMethod.instructions?has_content>${order.paymentMethod.instructions} <@extrafieldsBySection order, "billing_info"/>
  <#if showBuyerShippingSection>
<#if order.pickup>

${order.shippingMethod} ${order.pickupTime!} ${order.shippingAddress.name} ${order.shippingAddress.phone!}

<#elseif showShipping>
${textLabels.shipTo}
${order.shippingAddress.formattedHtml}
${order.shippingAddress.phone!}
<#if order.deliveryDate?has_content>

${textLabels.deliveryDateTime} <#if order.deliveryTimeFrom?has_content && order.deliveryTimeTo?has_content> ${textLabels.deliveryDateTimeInterval?replace("{date}", "${order.deliveryDate}")?replace("{timeFrom}", "${order.deliveryTimeFrom}")?replace("{timeTo}", "${order.deliveryTimeTo}")} <#else> ${textLabels.deliveryDateOnly?replace("{date}", "${order.deliveryDate}")}

<#if !order.pickup && order.shippingMethod?has_content>

${textLabels.shippingMethod}: ${order.shippingMethod}

<@extrafieldsBySection order, "shipping_info"/>

 

<#if order.items[0].taxes?has_content> <#list order.items[0].taxes as tax> <#list order.items as orderItem> <#if orderItem.taxes?has_content><#list orderItem.taxes as tax> <#if order.shippingMethod?has_content && !order.pickup> <#if order.shipping.taxes?has_content><#list order.shipping.taxes as tax>

${textLabels.items}

${textLabels.price}

${textLabels.quantity}

<#if tax.useDefaultName>${textLabels.defaultTaxName}<#else>${tax.name}

${textLabels.subtotal}

${orderItem.name} ${textLabels.sku} ${orderItem.sku} <#list orderItem.options as option> ${option.name}: ${option.value?html}

${orderItem.price}

${orderItem.quantity}

<#if tax.percentValue?has_content>

${tax.percentValue}

${orderItem.subtotal}

${textLabels.shipping} ${order.shippingMethod.estimatedTransitTime}

${order.shipping.cost}

<#if tax.percentValue?has_content>

${tax.percentValue}

${order.shipping.cost}

 

<#if order.shippingMethod?has_content> <#if !order.pickup && order.shipping.cost?has_content> <#if order.pricesIncludeTax> <#else> <#else> <#if !order.shipping.free> <#if order.handlingFee?has_content> <#if !order.pricesIncludeTax && order.taxes?has_content><#list order.taxes as tax> <#elseif !order.pricesIncludeTax && store.taxFreeBusiness == false && order.reversedTaxApplied == false && order.customerTaxExempt == false> <#list order.surcharges as surcharge><#if surcharge.visible> <#if order.discounts?has_content><#list order.discounts as discount> <#if order.pricesIncludeTax && order.taxes?has_content> <#list order.taxes as tax> <#if order.taxes?size gt 1> <#elseif order.pricesIncludeTax && store.taxFreeBusiness == false && order.reversedTaxApplied == false && order.customerTaxExempt == false> <#if order.giftCardRedemption?has_content> <#if true && store.taxFreeBusiness> <#elseif order.reversedTaxApplied || order.customerTaxExempt>
${textLabels.subtotal} ${order.subtotal}
${textLabels.shipping}${order.shipping.cost}${order.shipping.costWithoutTax}
${textLabels.pickupInvoice} ${order.shipping.costWithoutTax}
<#if order.handlingFee.useDefaultName>${textLabels.defaultHandlingFeeName}<#else>${order.handlingFee.name} ${order.handlingFee.value}
<#if tax.useDefaultName>${textLabels.defaultTaxName}<#else>${tax.name} <#if tax.percentValue> (${tax.percentValue}) ${tax.value}
${textLabels.vat} <#if tax.percentValue> (${tax.percentValue}) ${order.zeroVat}
${surcharge.titleTranslated} ${surcharge.totalValue}
<#if discount.useDefaultName>${textLabels.defaultDiscountName}<#else>${discount.name} ${discount.value}
${textLabels.totalWithoutTax} ${order.totalWithoutTax}
<#if tax.useDefaultName>${textLabels.defaultTaxName}<#else>${tax.name}<#if tax.percentValue> (${tax.percentValue}) ${tax.value}
${textLabels.totalTax} <#if order.taxesTotalPercentValue > (${order.taxesTotalPercentValue }) ${order.totalTax}
${textLabels.vat} <#if order.taxesTotalPercentValue > (${order.taxesTotalPercentValue }) ${order.zeroVat}
${order.giftCardRedemption.name} ${order.giftCardRedemption.value}

 

${textLabels.total} ${order.total}
${textLabels.taxFreeBusiness}
<#if order.reversedTaxApplied> ${textLabels.vatReverseCharge} <#elseif order.customerTaxExempt> ${textLabels.taxExempted}

 

${store.officeAddress.formattedHtml} <#if store.businessRegistrationId?has_content> <#if store.businessRegistrationId.value?matches(r".*\W\w+\W/span\W") != false>

${store.businessRegistrationId.name!""}: ${store.businessRegistrationId.value!""}
${textLabels.customerService}
${store.companyEmail}
${store.officeAddress.phone!}
<@urlWithoutProtocol store.storeUrl/>
${textLabels.customCompanyInfo!""}

ORDER<#if order.number?has_content>-${order.number}</#if>