Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
3.3 kB
2
Indexable
Never
{% set name_na = 'mail.system_details.system_name_not_available' | trans %}
<p style='line-height:26.25pt;mso-line-height-rule:exactly'>
    {{ 'mail.order.salutation' | trans(
        {
            '%first_name%': mail.buyerFirstName,
            '%last_name%': mail.buyerLastName
        })
    }}<br />

    {% if mail.locale.localeName != 'ja_JP' %}
        {{ 'mail.quote_approval.buyer.cart_declined' | trans(
            {
                '%cart_id%': mail.quote.uuid,
                '%createDate%': mail.cartOrderDate,
                '%approverFirstName%': mail.approverFirstName,
                '%approverLastName%': mail.approverLastName
            })
        }}
    {% else %}
        {{ 'mail.order.following_order' | trans }}
        <a href="{{ 'mail.order.webshop_link_address' | trans ~ mail.path_myOrders }}">#{{ mail.quote.uuid }}</a>
        {{ 'mail.order.canceled_reason' }}
    {% endif %}
    <br />
</p>

<p>
    <strong>{{ 'mail.system_details.selected_system' | trans }}</strong>:
    {{ mail.quote.systemDetails | selected_system(name_na) }}<br/>
    <strong>{{ 'mail.order.customer_name' | trans }}</strong>:
    {{ mail.quote.systemDetails.companyBusinessUnit }}
</p>

<strong>
    {{ 'mail.quote_approval.summary_title' | trans }}
    <a href="{{ 'mail.order.webshop_link_address' | trans ~ mail.path_myOrders }}">{{ mail.quote.uuid }}</a>):
</strong><br />

<table style="min-width: 70%; border: 1px dotted;">
    <thead style="font-weight: bold; font-style: italic;">
    <tr>
        <th>{{ 'mail.order.item_order_nbr' | trans }}</th>
        <th>{{ 'mail.order.product_sku' | trans }}</th>
        <th>{{ 'mail.order.product_name' | trans }}</th>
        <th>{{ 'mail.order.quantity' | trans }}</th>
        <th>{{ 'mail.order.price' | trans }}</th>
        <th>{{ 'mail.system_details.selected_system2' | trans }}</th>
        {% if mail.locale.localeName != 'ja_JP' %}
            <th>{{ 'mail.order.customer_name' | trans }}</th>
        {% else %}
            <th>{{ 'mail.order.customer_name_with_id' | trans }}</th>
        {% endif %}
    </tr>
    </thead>
    <tbody>
    {% for item in mail.quote.items %}
        <tr>
            <td style="padding: 10px; text-align: left;">{{ loop.index }}</td>
            <td style="padding: 10px; text-align: left;">{{ item.sku }}</td>
            <td style="padding: 10px; text-align: left;">{{ item.name }}</td>
            <td style="padding: 10px; text-align: center;">{{ item.quantity }}</td>
            <td style="padding: 10px; text-align: right;">{{ item.sumGrossPrice / 100 }} {{ mail.quote.currency.code }}</td>
            <td style="padding: 10px; text-align: left;">
                {{ item.systemDetails | selected_system(name_na) }}
            </td>
            <td style="padding: 10px; text-align: left;">
                {{ item.systemDetails ? item.systemDetails.companyBusinessUnit : '' }}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<p>
    <strong>{{ 'mail.order.total' | trans }}</strong>: {{ mail.quote.totals.grandTotal / 100 }} {{ mail.quote.currency.code }}
    ({{ 'mail.order.including_shipping_and_tax' | trans }})
</p>
<br /><br />