{# empty Twig template #}
<style type="text/css">
    nobr {
        word-wrap: normal;
        white-space: nowrap;
    }

    .bg {
        background-color: #F4EEC0;
    }

    .bord {
        border: 1px solid #C7BD87;
    }

    .Stil1 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
    }

    .Stil2 {
        font-size: 11px;
        font-family: Verdana, Arial, Helvetica, sans-serif
    }

    body {
        font-size: 90%
    }


    @media only screen and (max-width: 600px) {
        #wrapper {
            width: 100% !important;
        }
    }
</style>

<table id="wrapper" align="center" width="600" border="1" cellpadding="5" cellspacing="0"
       style="border-collapse: collapse;">
    <tr>
        <td>
            <table class="bg" bgcolor="#F4EEC0" width="100%" align="center" border="0" cellspacing="0" cellpadding="10">
                <tr colspan="3" valign="top">
                    <td width=40% class="bg" align="left">
                        {% if stock_logo_path > '' %}
                            <img src="{{ stock_logo_path|raw }}" width="150" alt="{{ stock.name }}" border="0"/>
                        {% endif %}

                        <br/><br/>
                    </td>
                    <td style="vertical-align: middle;" class="bg" bgcolor="#F4EEC0"><h3 style="margin:0">Заказ поставщику
                            № {{ order_code }}</h3>
                    </td>
                </tr>
            </table>
            <br/>
            <table border="0" cellspacing="" cellpadding="2" width="100%">
                <tr>
                    <td>
                        <strong>Магазин:</strong></td>
                    <td>{{ stock.name }}</td>
                </tr>
                <tr>
                    <td><strong>Контактный телефон:</strong></td>
                    <td>{{ stock.phone }}</td>
                </tr>
                <tr>
                    <td><strong>Email:</strong></td>
                    <td>{{ stock.email }}</td>
                </tr>
				<tr>
                    <td><strong>Поставщик:</strong></td>
                    <td>{{ provider }}</td>
                </tr>

            </table>
            <br/>
            <div class="outer">
                <table border="0" cellspacing="" cellpadding="2" width="100%">
                    <tr>
                        <td colspan="2" bgcolor="#F4EEC0"><strong>Содержание заказа</strong></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <table width=100% border=1 cellpadding=4 cellspacing=0 bordercolor="#CCCCCC">
                                <tr align=left class="Stil1">
                                    <th align="center">Артикул</th>
                                    <th align="center">Наименование</th>
                                    <th align="center">Кол.-во</th>
                                    <th width="15%" align="center">Цена,{{ currency }}</th>
                                    <th width="15%" align="center">Итог,{{ currency }}</th>
                                </tr>
                                {% for item in order_items %}
                                    <tr class="Stil1">
                                        <td><nobr>{{ item.article }}</nobr></td>
                                        <td>{{ item.name }}</td>
                                        <td align="center">{{ item.amount }}</td>
                                        <td align="right"><nobr>{{ display_price(item.price,currency) }}</nobr></td>
                                        <td align="right"><nobr>{{ display_price(item.price * item.amount) }}</nobr></td>
                                    </tr>
                                {% endfor %}
                                <tr class="Stil1">
                                    <td colspan=4 align=right><b>Итого:</b></td>
                                    <td align="right">
                                        <strong><nobr>{{ display_price(sum) }}</nobr></strong>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <!-- end order items information -->
                    <!-- begin customer note -->
                    {% if order.delivery_address > '' %}
                    <tr>
                        <td colspan="3"><b class="Stil1">Адрес доставки:</b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ order.delivery_address }}
                        </td>
                    </tr>
                    {% endif %}
                    {% if order.delivery_address > '' %}
                    <tr>
                        <td colspan="3"><b class="Stil1">Способ оплаты:</b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ payment.title }}
                        </td>
                    </tr>
                    {% endif %}
                    {% if order.comment  > '' %}
                    <tr>
                        <td colspan="3"><b class="Stil1">Комментарий к заказу:</b></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            {{ order.comment }}
                        </td>
                    </tr>
                    {% endif %}
                </table>
                <p class="Stil1">
                    {{ signature|raw }}
                </p>

        </td>
    </tr>
</table>
