emails

generic   

Brand Experience Center
Brand Experience Center

{{ text }}

+420 251 095 511

experiencecenter@bshg.com

Copyright © {{ date_now()|date_format("%Y") }} BSH domácí spotřebiče s.r.o.

Copy
Edit
<!-- components/emails/generic.php --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Brand Experience Center</title> <meta name="viewport" content="width=device-width"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <style type="text/css"> @media only screen and (max-width: 668px) { body { padding: 0 20px !important; box-sizing: border-box; } table { width: 100% !important; } } </style> </head> <body paddingwidth="0" paddingheight="0" bgcolor="#ffffff" style="margin: 0; width: 100% !important; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; background: #ffffff;" offset="0" toppadding="0" leftpadding="0"> <table style="margin: 0 auto; padding: 0; max-width: 100%; width: 626px; height: 90px; vertical-align: middle;" align="center" cellpadding="0" cellspacing="0" width="626" height="90"> <tbody> <tr> <td valign="center" align="left" style="vertical-align: middle; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; text-align: left;"><a href="https://www.brandexperiencecenter.cz/"><img src="./img/logo-bsh.png" width="84" height="48" alt="Brand Experience Center"></a></td> </tr> </tbody> </table> <table style="margin: 0 auto 20px auto; padding: 0; font-family: Arial, sans-serif; font-size: 15px; color: #1f2125; background: #f4f4f4; max-width: 100%; width: 626px;" bgcolor="#f4f4f4" align="center" cellpadding="0" cellspacing="0" width="626"> <tbody> <tr> <td style="padding: 35px;"> <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px;">{{ text }}</p> </td> </tr> </tbody> </table> <table style="margin: 0 auto 30px auto; padding: 0; font-family: Arial, sans-serif; font-size: 12px; color: #aaa; height: 70px; max-width: 100%; width: 626px;" align="center" cellpadding="0" cellspacing="0" width="626" height="70"> <tbody> <tr> <td valign="top" style="vertical-align: top; padding: 0;"> <center> <p style="margin: 0; padding: 0; color: #aaa; font-family: Arial, sans-serif; font-size: 12px; line-height: 170%; text-align: left;"><a href="tel:00420251095511" style="text-decoration:underline;color:#aaa;"><span style="text-decoration:underline;color:#aaa;">+420 251 095 511</span></a><br></p> <p style="margin: 0; padding: 0; color: #aaa; font-family: Arial, sans-serif; font-size: 12px; line-height: 170%; text-align: left;"><a href="mailto:experiencecenter@bshg.com" style="text-decoration:underline;color:#aaa;"><span style="text-decoration:underline;color:#aaa;">experiencecenter@bshg.com</span></a><br></p> <p style="margin: 0; padding: 0; color: #aaa; font-family: Arial, sans-serif; font-size: 12px; line-height: 170%; text-align: left;">Copyright &copy; {{ date_now()|date_format("%Y") }} BSH domácí spotřebiče s.r.o.</p> </center> </td> </tr> </tbody> </table> </body> </html>
Copy
Copy
Edit
/* scss/emails/_generic.scss */

order_received   

Brand Experience Center
Brand Experience Center
Objednávka č: {{ order_id }}

Vážený zákazníku,

{% set is_paid = states.paid_state == 'paid' %} {% if email_type == 'submit' %}

potvrzujeme, že jsme přijali Vaši objednávku číslo {{ order_id }} vytvořenou na brandexperiencecenter.cz.

{% elif email_type == 'payment' %}

potvrzujeme úspěšnou platbu Vaší objednávky číslo {{ order_id }}.
Své zakoupené tituly najdete ve své knihovně.

{% if has_physical and not states.ship_time %}

O dalším průběhu objednávky Vás budeme informovat.

{% endif %} {% elif email_type == 'cancel' %}

Vaše objednávka číslo {{ order_id }} byla zrušena. Novou objednávku si můžete vytvořit na brandexperiencecenter.cz.

{% endif %}

S pozdravem,
Tým Brand Experience Center

Odběratel

{{ user.email }}

Dodavatel

BSH domácí spotřebiče s. r. o.

Radlická 350
158 00 Praha 5

Tel.: +420 251 095 550
E-mail: experiencecenter@bshg.com

IČ: 25126954
DIČ: CZ25126954

{% if not is_paid and pricing.total > 0 %}

Typ platby: {{ payment._name }} {% if payment._choice_name %} {{ payment._choice_name }} {% endif %}

{% endif %} {% if items %} {% for one in items %} {% if create_download_links %} {% endif %} {% endfor %}
{% set images = one.broker_result.image %} {{ one.title }} {% if one.subtitle %}
{{ one.subtitle }} {% endif %} {% if one.c_type_text() %}
{{ one.c_type_text() }} {% endif %}
{{ one.full_brutto()|int }} Kč {% if one.dph_ratio is none %}{% else %}
vč. {{"%d"|format(one.dph_ratio)}}% DPH{% endif %}
Stáhnout
{% for ratio, row in pricing.dph_recapitulation.items() if row.netto %} {% if ratio is none %} {#Položky nepodléhající DPH:
#} {% elif ratio > 0 %}

{{ gettext("order-items-vat") }} {{ "%d"|format(ratio) }}% DPH:
Celkem bez DPH: {{ "%0.2f"|format(row.netto) }} Kč
DPH ({{ "%d"|format(ratio) }}%): {{ "%0.2f"|format(row.dph) }} Kč

{% endif %} {#

Celkem: {{ row.brutto|int }} Kč

#} {% endfor %}

Celkem: {{ pricing.total|int }} Kč

{% if email_type == 'payment' %}

Neplaťte, již uhrazeno!

{% endif %}
{% endif %} {% if notes.message_for_user %}

Poznámka k Vaší objednávce:
{{ notes.message_for_user }}

{% endif %}
{% if email_type != "ship" %} {% if email_type == "payment" %}

Děkujeme za Váš nákup na brandexperiencecenter.cz a přejeme příjemný den!

{% endif %}

V případě jakýchkoliv dotazů nás neváhejte kontaktovat na e-mailové adrese experiencecenter@bshg.com.

{% endif %}

+420 251 095 511

experiencecenter@bshg.com

Copyright © {{ date_now()|date_format("%Y") }} BSH domácí spotřebiče s.r.o.

Copy
Edit
<!-- components/emails/order_received.php --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Brand Experience Center</title> <meta name="viewport" content="width=device-width"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <style type="text/css"> @media only screen and (max-width: 668px) { body { padding: 0 20px !important; box-sizing: border-box; } table { width: 100% !important; } } </style> </head> <body paddingwidth="0" paddingheight="0" bgcolor="#ffffff" style="margin: 0; width: 100% !important; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; background: #ffffff;" offset="0" toppadding="0" leftpadding="0"> <table style="margin: 0 auto; padding: 0; max-width: 100%; width: 626px; height: 90px; vertical-align: middle;" align="center" cellpadding="0" cellspacing="0" width="626" height="90"> <tbody> <tr> <td valign="center" align="left" style="vertical-align: middle; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; text-align: left;"><a href="https://www.brandexperiencecenter.cz/"><img src="./img/logo-bsh.png" width="84" height="48" alt="Brand Experience Center"></a></td> </tr> </tbody> </table> <table style="margin: 0 auto 20px auto; padding: 0; font-family: Arial, sans-serif; font-size: 15px; color: #1f2125; background: #f4f4f4; max-width: 100%; width: 626px;" bgcolor="#f4f4f4" align="center" cellpadding="0" cellspacing="0" width="626"> <tbody> <tr> <td bgcolor="#da991f" style="background: #da991f; padding: 10px 25px; font-size: 17px; color: #ffffff;" align="left"> <b>Objednávka</b> </td> <td bgcolor="#da991f" style="background: #da991f; padding: 10px 25px; font-size: 17px; color: #ffffff; text-align: right;" align="right"> č: {{ order_id }} </td> </tr> <tr> <td colspan="2" style="padding: 25px 25px 10px 25px;"> <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 15px;">Vážený zákazníku,</p> {% set is_paid = states.paid_state == 'paid' %} {% if email_type == 'submit' %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 15px;"> potvrzujeme, že jsme přijali Vaši objednávku číslo <b>{{ order_id }}</b> vytvořenou na <a style="color:#da991f; text-decoration: underline;" href="https://www.brandexperiencecenter.cz/"><span style="color:#da991f">brandexperiencecenter.cz</span></a>. </p> {% elif email_type == 'payment' %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 15px;"> potvrzujeme úspěšnou platbu Vaší objednávky číslo <b>{{ order_id }}</b>. <br>Své zakoupené tituly najdete ve <a style="color: #da991f; text-decoration: underline;" href="{{ my_library }}" target="_blank"><span style="color:#da991f">své knihovně</span></a>. </p> {% if has_physical and not states.ship_time %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px;"> O dalším průběhu objednávky Vás budeme informovat. </p> {% endif %} {% elif email_type == 'cancel' %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 15px;"> Vaše objednávka číslo <b>{{ order_id }}</b> byla zrušena. Novou objednávku si můžete vytvořit na <a style="color:#da991f; text-decoration: underline;" href="https://www.brandexperiencecenter.cz/"><span style="color:#da991f">brandexperiencecenter.cz</span></a>. </p> {% endif %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 15px;"> S pozdravem,<br> Tým Brand Experience Center </p> </td> </tr> <tr> <td valign="top" width="50%" style="padding-top: 20px; padding-right: 20px; padding-bottom: 20px; padding-left: 20px; border-right: 1px solid #dddddd; vertical-align: top;"> <b style="font-size: 12px; color: #999999; text-transform: uppercase;">Odběratel</b><br> <p style="margin: 0; padding: 0; line-height: 140%; color: #da991f; font-size: 15px; padding-top: 10px; padding-bottom: 15px;"><b><a style="color: #da991f; text-decoration: underline;" href="mailto:{{ user.email }}">{{ user.email }}</a></b></p> </td> <td valign="top" width="50%" style="padding-top: 20px; padding-right: 20px; padding-bottom: 20px; padding-left: 20px; vertical-align: top;"> <b style="font-size: 12px; color: #999999; text-transform: uppercase;">Dodavatel</b><br> <p style="margin: 0; padding: 0; line-height: 140%; color: #da991f; font-size: 15px; padding-top: 10px; padding-bottom: 10px;"><b>BSH domácí spotřebiče s. r. o.</b></p> <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 14px; padding-bottom: 10px;">Radlická 350<br>158 00 Praha 5</p> <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 14px; padding-bottom: 10px;"><b>Tel.:</b> <a style="color: #da991f; text-decoration: underline;" href="tel:00420251095550">+420 251 095 550</a><br><b>E-mail:</b> <a style="color: #da991f; text-decoration: underline;" href="mailto:experiencecenter@bshg.com">experiencecenter@bshg.com</a></p> <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 14px;"><b>IČ:</b> 25126954<br><b>DIČ:</b> CZ25126954</p> </td> </tr> <tr> <td colspan="2" style="padding-top: 20px; padding-right: 20px; padding-bottom: 10px; padding-left: 20px; border-top: 1px solid #ffffff;"> {% if not is_paid and pricing.total > 0 %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 20px;"> <b>Typ platby:</b>&nbsp;{{ payment._name }} {% if payment._choice_name %} {{ payment._choice_name }} {% endif %} <br/> </p> {% endif %} {% if items %} <table style="padding: 0; font-family: Arial, sans-serif; font-size: 15px; color: #707173; border-spacing: 0 10px;" bgcolor="white" align="center" cellpadding="0" cellspacing="0 10" width="100%"> <tbody> {% for one in items %} <tr> <td valign="top" bgcolor="#eeeeee" width="60" style="width: 60px; padding: 15px; background: #eeeeee; vertical-align: top; border-bottom: 1px solid #ddd;"> {% set images = one.broker_result.image %} <img width="70" style="width: 60px; height: auto; display: block;" src="{{ images[0] if images else "" }}" alt=""> </td> <td valign="top" bgcolor="#eeeeee" style="padding: 15px; background: #eeeeee; vertical-align: top; border-bottom: 1px solid #ddd;"> <b style="color: #1f2125;">{{ one.title }}</b> {% if one.subtitle %} <br>{{ one.subtitle }} {% endif %} {% if one.c_type_text() %} <br>{{ one.c_type_text() }} {% endif %} </td> <td valign="top" align="right" bgcolor="#e8e8e8" style="padding: 17px 20px 15px 15px; background: #e8e8e8; vertical-align: top; text-align: right; line-height: 18px; border-bottom: 1px solid #ddd;"> <b style="color: #da991f;">{{ one.full_brutto()|int }}&nbsp;Kč</b> {% if one.dph_ratio is none %}{% else %}<br><small style="color:#999; font-size: 11px;">vč. {{"%d"|format(one.dph_ratio)}}% DPH</small>{% endif %} </td> {% if create_download_links %} <td valign="top" align="right" bgcolor="#e8e8e8" width="60" style="width: 60px; padding: 17px 20px 15px 15px; background: #e8e8e8; vertical-align: top; text-align: right; border-bottom: 1px solid #ddd;"> <a style="background: #da991f; color: #ffffff; text-decoration: none; padding: 4px 6px;" href="{{ url_for(web_root_uri, "detail", {"provider": one.provider, "item_id": one.ident, "name": "", "seo_path": ""}) }}"><b>Stáhnout</b></a> </td> {% endif %} </tr> {% endfor %} <tr> <td {% if create_download_links %}colspan="4"{% else %}colspan="3"{% endif %} valign="top" align="right" style="padding: 15px; vertical-align: top; text-align: right;"> {% for ratio, row in pricing.dph_recapitulation.items() if row.netto %} {% if ratio is none %} {#<small>Položky nepodléhající DPH:</small><br>#} {% elif ratio > 0 %} <p style="margin: 0; padding: 0; line-height: 160%; color: #1f2125; font-size: 14px; padding-bottom: 10px;"> <small style="color:#999;">{{ gettext("order-items-vat") }} <b>{{ "%d"|format(ratio) }}% DPH</b>:</small><br> Celkem bez DPH: {{ "%0.2f"|format(row.netto) }}&nbsp;Kč<br> DPH ({{ "%d"|format(ratio) }}%): {{ "%0.2f"|format(row.dph) }}&nbsp;Kč<br> </p> {% endif %} {#<p style="margin: 0; padding: 0; line-height: 160%; color: #1f2125; font-size: 14px; padding-bottom: 10px;"> <b style="font-size: 15px;">Celkem: <b style="color: #da991f;">{{ row.brutto|int }}&nbsp;Kč</b></b> </p>#} {% endfor %} <p style="margin: 0; padding: 0; line-height: 160%; color: #1f2125; font-size: 18px; padding-bottom: 10px;"> <b style="font-size: 18px;">Celkem: <b style="color: #da991f;">{{ pricing.total|int }}&nbsp;Kč</b></b> </p> {% if email_type == 'payment' %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 14px;"><i>Neplaťte, již uhrazeno!</i></p> {% endif %} </td> </tr> </tbody> </table> {% endif %} {% if notes.message_for_user %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 14px;">Poznámka k Vaší objednávce:<br/> {{ notes.message_for_user }}</p> {% endif %} </td> </tr> <tr> <td colspan="2" style="padding: 25px 20px; border-top: 1px solid #eeeeee;"> {% if email_type != "ship" %} {% if email_type == "payment" %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px; padding-bottom: 15px;">Děkujeme za Váš nákup na <a style="color:#da991f; text-decoration: underline;" href="https://www.brandexperiencecenter.cz/"><span style="color:#da991f">brandexperiencecenter.cz</span></a> a přejeme příjemný den!</p> {% endif %} <p style="margin: 0; padding: 0; line-height: 140%; color: #1f2125; font-size: 15px;">V případě jakýchkoliv dotazů nás neváhejte kontaktovat na e-mailové adrese <a style="color: #da991f; text-decoration: underline;" href="mailto:experiencecenter@bshg.com?subject=Dotaz k objednávce č. {{ order_id }}">experiencecenter@bshg.com</a>.</p> {% endif %} </td> </tr> </tbody> </table> <table style="margin: 0 auto 30px auto; padding: 0; font-family: Arial, sans-serif; font-size: 12px; color: #aaa; height: 70px; max-width: 100%; width: 626px;" align="center" cellpadding="0" cellspacing="0" width="626" height="70"> <tbody> <tr> <td valign="top" style="vertical-align: top; padding: 0;"> <center> <p style="margin: 0; padding: 0; color: #aaa; font-family: Arial, sans-serif; font-size: 12px; line-height: 170%; text-align: left;"><a href="tel:00420251095511" style="text-decoration:underline;color:#aaa;"><span style="text-decoration:underline;color:#aaa;">+420 251 095 511</span></a><br></p> <p style="margin: 0; padding: 0; color: #aaa; font-family: Arial, sans-serif; font-size: 12px; line-height: 170%; text-align: left;"><a href="mailto:experiencecenter@bshg.com" style="text-decoration:underline;color:#aaa;"><span style="text-decoration:underline;color:#aaa;">experiencecenter@bshg.com</span></a><br></p> <p style="margin: 0; padding: 0; color: #aaa; font-family: Arial, sans-serif; font-size: 12px; line-height: 170%; text-align: left;">Copyright &copy; {{ date_now()|date_format("%Y") }} BSH domácí spotřebiče s.r.o.</p> </center> </td> </tr> </tbody> </table> </body> </html>
Copy
Copy
Edit
/* scss/emails/_order_received.scss */

recipe   

{% set f_order_id = "%08d"|format(order_id) %} {% if not recipe_id %} {% set recipe_id = order_id %} {% set f_recipe_id = f_order_id %} {% else %} {% set f_recipe_id = recipe_id %} {% endif %} Daňový doklad k objednávce č. {{ f_order_id }} {# {% if not dates.invoice or not dates.due%}
PROFORMA
{% endif %} #}
Daňový doklad č. {{f_recipe_id}}
Dodavatel: BSH domácí spotřebiče s. r. o.
Radlická 350
158 00 Praha 5
IČ: 25126954
DIČ: CZ25126954
č. účtu: 43-5170920267/0100

Společnost zapsaná v OR, vedeném MS v Praze v odd. C, vložka 51947

Technická podpora
Telefon: 251 095 511
E-mail: experiencecenter@bshg.com
Web: www.brandexperiencecenter.cz

Odběratel:
{%if facturation_address.name %} {{facturation_address.name}} {{facturation_address.surname}}
{%endif%} {%if facturation_address.company%} {{facturation_address.company}}
{%endif%} {{facturation_address.street}}
{{facturation_address.zip}} {{facturation_address.city}}
{{facturation_address.country}}
{%if facturation_address.ic%} IČ: {{facturation_address.ic}}
{%endif%} {%if facturation_address.dic%} DIČ: {{facturation_address.dic}}
{%endif%} {%if facturation_address.phone%} Telefon: {{facturation_address.phone}}
{%endif%} E-mail: {{user.email}}

Objednávka číslo {{f_order_id}}{%if dates.invoice %} ze dne {{dates.invoice.strftime('%d.%m.%Y')}}{%endif%}:
Platební údaje:
Forma úhrady: {{payment.name}} Daňový doklad číslo: {{f_recipe_id}}
Číslo účtu: 43-5170920267/0100 Datum splatnosti: {%if dates.due %} {{dates.due.strftime('%d.%m.%Y')}} {%else%} <PROFORMA> {%endif%}
Variabilní symbol: {{f_order_id}} Datum vystavení: {%if dates.invoice %} {{dates.invoice.strftime('%d.%m.%Y')}} {%else%} <PROFORMA> {%endif%}
Datum zdanitelného plnění: {%if dates.invoice %} {{dates.invoice.strftime('%d.%m.%Y')}} {%else%} <PROFORMA> {%endif%}
Objednané zboží: {# #} {% for one in items %} {%if one.real_discount %} {%endif%} {# {%if one.used_future_commitment %} {%endif%} #} {% endfor %} {% for one in discounts if one.voucher.future_commitment and one.applied_value%} {% endfor %} {% if has_physical %} {%if shipping_item.real_discount or payment_item.real_discount%} {%endif%} {%if shipping_item.used_future_commitment or payment_item.used_future_commitment%} {%endif%} {% endif %}
ČísloNázev Formát Počet Dodání Cena ks Bez DPH Sazba DPH DPH Celkem
{{one.title}} {%if one.subtitle %}
{{one.subtitle}} {%endif%} {%if one.c_type == "voucher" and states.paid_state == 'paid' %}
Kód:{{one.ident}} {%endif%}
{{one.c_type_text()}} {%if one.count %}{{one.count}}{%endif%} {% if one.physical %} zboží {%else%} online {%endif%} {{"%0.2f"|format(one.one_brutto())}} Kč {{"%0.2f"|format(one.full_netto())}} Kč {%if one.dph_ratio is none%}-{%else%}{{"%d"|format(one.dph_ratio)}} %{%endif%} {{"%0.2f"|format(one.full_dph())}} Kč {{"%0.2f"|format(one.full_brutto())}} Kč
Sleva: {{one.title}} {%if one.subtitle %}
{{one.subtitle}} {%endif%}
{# format #} {# pocet #} {# zpusob dodani #} {# cena za ks #} -{{"%0.2f"|format(one.discount_netto())}} Kč {# bez DPH #} {%if one.dph_ratio is none%}-{%else%}{{"%d"|format(one.dph_ratio)}} %{%endif%} -{{"%0.2f"|format(one.discount_dph())}} Kč -{{"%0.2f"|format(one.discount_brutto())}} Kč
Využití budoucích závazků
{ # format # } { # pocet # } { # zpusob dodani # } { # cena za ks # } -{{"%0.2f"|format(one.used_future_commitment_netto())}} Kč { # bez DPH # } 0 % -{{"%0.2f"|format(one.used_future_commitment_dph())}} Kč -{{"%0.2f"|format(one.used_future_commitment_brutto())}} Kč
Využití budoucích závazků: Kupón {{one.voucher.voucher_id}}
{# format #} {# pocet #} {# zpusob dodani #} {# cena za ks #} -{{"%0.2f"|format(one.applied_value)}} Kč {# bez DPH #} 0 % -{{"%0.2f"|format(0)}} Kč -{{"%0.2f"|format(one.applied_value)}} Kč
Doprava / poštovné {{shipping_item.title|replace('Česká pošta','ČP')}} {{"%0.2f"|format(shipping_item.one_brutto() + payment_item.one_brutto())}} Kč {{"%0.2f"|format(shipping_item.full_netto() + payment_item.full_netto())}} Kč {%if shipping_item.dph_ratio is none%}-{%else%}{{"%d"|format(shipping_item.dph_ratio)}} %{%endif%} {{"%0.2f"|format(shipping_item.full_dph() + payment_item.full_dph())}} Kč {{"%0.2f"|format(shipping_item.full_brutto() + payment_item.full_brutto())}} Kč
Sleva: Doprava / poštovné {# format #} {# pocet #} {# zpusob dodani #} {# cena za ks #} -{{"%0.2f"|format(shipping_item.discount_netto() + payment_item.discount_netto())}} Kč {# bez DPH #} {%if shipping_item.dph_ratio is none%}-{%else%}{{"%d"|format(shipping_item.dph_ratio)}} %{%endif%} -{{"%0.2f"|format(shipping_item.discount_dph() + payment_item.discount_dph())}} Kč -{{"%0.2f"|format(shipping_item.discount_brutto() + payment_item.discount_brutto())}} Kč
Využití budoucích závazků
{# format #} {# pocet #} {# zpusob dodani #} {# cena za ks #} -{{"%0.2f"|format(shipping_item.used_future_commitment_netto() + payment_item.used_future_commitment_netto())}} Kč {# bez DPH #} 0 % -{{"%0.2f"|format(shipping_item.used_future_commitment_dph() + payment_item.used_future_commitment_dph())}} Kč -{{"%0.2f"|format(shipping_item.used_future_commitment_brutto() + payment_item.used_future_commitment_brutto())}} Kč

Celkem k úhradě     

{{"%0.2f"|format(pricing.total)}} Kč

Rekapitulace DPH:

Celková hodnota objednaného zboží: {{"%0.2f"|format(items.full_price)}} Kč, Celková cena za dodání: {{"%0.2f"|format(shipping_item.discounted_brutto() + payment_item.discount_brutto())}} Kč

{%for ratio, row in pricing.dph_recapitulation.items() if row.netto%} {%if ratio is none %} položky nepodléhající DPH: | - , | - , {%else%} položky podléhající {{"%d"|format(ratio)}}% DPH: | základ daně:{{"%0.2f"|format(row.netto)}} Kč, | {{"%d"|format(ratio)}}% daň: {{"%0.2f"|format(row.dph)}} Kč, {%endif%} | celkem: {{"%0.2f"|format(row.brutto)}} Kč
{%endfor%}

Copy
Edit
<!-- components/emails/recipe.php --> {% set f_order_id = "%08d"|format(order_id) %} {% if not recipe_id %} {% set recipe_id = order_id %} {% set f_recipe_id = f_order_id %} {% else %} {% set f_recipe_id = recipe_id %} {% endif %} <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title> Daňový doklad k objednávce č. {{ f_order_id }} </title> <style> @page { size: A4 portrait; margin: 8mm 5mm 10mm 5mm; @top-right { font-size: 9pt; vertical-align: middle; content: "Daňový doklad č. {{ f_recipe_id }}"; } @top-left { font-size: 9pt; vertical-align: middle; content: "Objednávka vytvořena: {{create_time.strftime('%d.%m.%Y %H:%M')}}"; } @bottom-right { font-size: 9pt; vertical-align: middle; content: "Stránka " counter(page) "/" counter(pages) ; } } body { width:1024px; margin-left: auto; margin-right: auto; font-family: sans-serif; } .head {margin:10px 0px;} .head b {display:inline-block; float:right; font-size:38px} .aright {text-align: right !important;} .aleft {text-align: left !important;} .padr {padding-right:40px !important;} .padl {padding-left:40px !important;} .right { padding-left:5px; vertical-align: top; width:50%; text-align:left; } .left { padding-right:5px; vertical-align: top; text-align:left; width:50%; } td.left fieldset { margin-right:8px; } td.right fieldset { margin-left:8px; } .faktura_header { width:100%; border-collapse: collapse; } .faktura_header tr, .faktura_header td { height: 100%; padding: 0; } .faktura_rekapitulace {font-size:9px;} .faktura_or {font-size:12px;} table.faktura_items { border-collapse: collapse; margin-bottom:10px; width: 100%; } .nowrap {white-space:nowrap;} .faktura_items tr td.wrap {white-space: normal;} .faktura_items tr th{text-align:left;border-bottom: 1px solid gray} .faktura_items tr td{border-top: 1px solid gray;border-bottom: 1px solid gray;margin:2px 10px;} .faktura_items tr.noborder td {border-bottom:0;padding-bottom:10px;} .faktura_items tr.noborder td h4 {margin-bottom:0;font-size:13px;} .faktura_items tr td {text-align:right;font-size:11px;} .faktura_items tr th {/*padding-left:9px !important;padding-right:9px !important;*/font-size:11px;} .faktura_items tr td, .faktura_items tr th{ width: 100%; padding:4px; } .items_row { font-size:11px; } td fieldset { height:256px; } fieldset { margin-bottom: 10px; border-color: LightGrey; border-style: solid; } .foot { padding-top:20px; } pre { white-space: pre-wrap; /* CSS 3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ } a:hover { text-decoration: underline; color:red; } a:visited, a:link, a:active { text-decoration: none; color:black; } @media print { body { width: 100%; font-size:11pt; } .page_wrap { } .head b { font-size:16pt; } .faktura_rekapitulace {font-size:7pt;} .faktura_or {font-size:8pt;} .items_row { font-size:9pt; } td fieldset { height:275px; } table.faktura_items { width: auto; font-size:7pt; } .faktura_items tr td, .faktura_items tr th{ width: auto; } .faktura_items tr.noborder td { padding-bottom:4px; } .faktura_items tr td{ margin:2px 4px; } .pdf_hide { display: none !important; } .nonbreakable { page-break-inside: avoid; } fieldset { padding-top: 2ex; } legend { position: relative; top:-3ex; } legend span { background-color:white; width:auto; } .watermark { position: absolute; top:50%; color:red; font-weight:bold; opacity: 0.25; font-size: 100pt; width: 100%; text-align: center; z-index: 1000; -ms-transform: rotate(-45deg); /* IE 9 */ -webkit-transform: rotate(-45deg); /* Chrome, Safari, Opera */ transform: rotate(-45deg); } } </style> </head> <body> {# {% if not dates.invoice or not dates.due%} <div class="watermark"> PROFORMA </div> {% endif %} #} <div class="page_wrap"> <div class="head"> <b class="pdf_hide">Daňový doklad č. {{f_recipe_id}}</b> </div> <table class="faktura_header"> <tr><td class='left'> <fieldset style="background:#fff;padding:0.5em 0.75em;border:2px solid LightGrey;"> <legend><span> Dodavatel: <span></legend> <b>BSH domácí spotřebiče s. r. o.</b><br> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwCAMAAAC40K2/AAAAM1BMVEX///8AAACAgIBAQEC/v7+fn58QEBDv7+9gYGDf39/Pz88wMDCvr6+Pj49wcHAgICBQUFCyCQKwAAADHklEQVRIx+2X65KbMAyFdfHdxvD+T1sfGRKWNIXp3/bMBBwhf1iyovUSNRkqROQwcARFEU/ThJvI7tYiPRObEpEyVDGvjQHuwryYCz4meQpdnDCXAU1umZTEzG1CQ5xQuHll7g+hbl6UBTisJXDiNKG4T6ibb8sPoXHhkCe04tK4Ng4GVcDe0MjsH+c0NORUZbVwE/ex2AaobFzfUHvpM2jaBgs5hZxFvzjlZNDM7E/Q9SnUUVw5IfySeCVybAoGHZ91fUEzc3sIRcAKKCYV6lxFZEwHFC98r3RDeh5BW/bM8t6olb1lLxmUPB8l1RT79Lz4NR4lpWWWzaiICSWdUCg8Y5JASJTHb7SIOFlgzyLZwQTb4Rbpv/7rL+RcvBruGl75McexyQm6HynX2VjCgi+Q7oZ+tAIT5s0fBq4SYGsHCw91qMTAidxs1qtUZo+Bqna8SRSMCQ06ZIvJO3RjrmkL+WDhIZn8cFLeXn5qA+j4/e5QfUWo85kcHQGs12CqckUKJkOu0P4BHdE0e4a++QHVIRu905ThOMNHGpLzgf0p/D68VXiNGwu64oXl2ARbYM4GhULeB3LczxulgI5tkGFyZyh0Dn+Bs0EDa890Cl9l5IYu4Su6Y2eJSMOXnI73Dmx7s37kFDOvUGxDsJzqN2jiOj5r/C0Ul36F2uSZkTQqP5+hJimoizwGZ6jpKId6Ln4HqFWozAPNylwOFhU1edENeVWNXf2EdjURDPCLfgz8NJaiOABlNWdfB6uWg0X/9Y+rJdWtkZgceVn2g77syl4gT06Gp+R7ZFSGEvG7f/h50OddbrroXvmh3EIrBym5OTuC4Y+Rvg7646sZx3vTGJcB7VQqb3dM/2pcczC7VDfoNJ66gOC+sN5B0Uem5kojCMzlAk0IYkK325UC8YJCjhQ51AsUslO14ih/D+0vaMJOA1oG6ydUrTCEoU532hD+JacOSfmWU89cHmzU8gmNgb9An/3XUxmxdb+H7wHFFn+GLxPaWe+Lf/tR/DqhdAnfNKFtDO5VFhGfyZkKFTtqZefeZ7XiTMOYxypg+6N+Ae+KFSArWMdHAAAAAElFTkSuQmCC" style="height:40px; padding-bottom:10px;float:right;margin-right:18%;padding: 10px;margin: -20px;margin-top: -25px;padding-right:20px;"> <a target="_blank" href="https://mapy.cz/s/pofasareko">Radlická 350<br>158 00 Praha 5<br></a> IČ: 25126954<br> DIČ: CZ25126954<br> č. účtu: 43-5170920267/0100<br> <p class='faktura_or'> Společnost zapsaná v OR, vedeném MS v Praze v odd. C, vložka 51947 </p> <p style="font-size: 80%;"> Technická podpora<br> Telefon: <a target="_blank" href="tel:00420251095511">251 095 511</a><br> E-mail: <a target="_blank" href="mailto:experiencecenter@bshg.com">experiencecenter@bshg.com</a><br> Web: <a target="_blank" href="https://www.brandexperiencecenter.cz/">www.brandexperiencecenter.cz</a> </p> </fieldset> </td> <td class='right'> <fieldset style="background:#fff;padding:0.5em 0.75em;border:2px solid LightGrey;"> <legend><span>Odběratel: </span></legend> <address class="indented"> {%if facturation_address.name %} <b>{{facturation_address.name}} {{facturation_address.surname}}</b><br/> {%endif%} {%if facturation_address.company%} {{facturation_address.company}}<br/> {%endif%} {{facturation_address.street}}<br/> {{facturation_address.zip}} {{facturation_address.city}}<br/> {{facturation_address.country}}<br/> {%if facturation_address.ic%} IČ: {{facturation_address.ic}}<br/> {%endif%} {%if facturation_address.dic%} DIČ: {{facturation_address.dic}}<br/> {%endif%} {%if facturation_address.phone%} Telefon: <a target="_blank" href="tel:{{facturation_address.phone}}">{{facturation_address.phone}}</a><br/> {%endif%} E-mail: <a href="mailto:{{user.email}}">{{user.email}}</a><br/> </address><br/> </fieldset> </td> </tr> </table> <fieldset style="background:#fff;padding:0.5em 0.75em;border:2px solid LightGrey;"> <legend><span> Objednávka číslo {{f_order_id}}{%if dates.invoice %} ze dne {{dates.invoice.strftime('%d.%m.%Y')}}{%endif%}: <span></legend> <table class="faktura_header"> <tr> <td><b> Platební údaje:</b></td> <td></td> <td></td> <td></td> </tr> <tr> <td class="aleft">Forma úhrady:</td> <td class="aright padr">{{payment.name}}</td> <td class="aleft padl">Daňový doklad číslo:</td> <td class="aright">{{f_recipe_id}}</td> </tr> <tr> <td class="aleft">Číslo účtu:</td> <td class="aright padr">43-5170920267/0100</td> <td class="aleft padl">Datum splatnosti:</td> <td class="aright"> {%if dates.due %} {{dates.due.strftime('%d.%m.%Y')}} {%else%} &lt;PROFORMA&gt; {%endif%} </td> </tr> <tr> <td class="aleft">Variabilní symbol:</td> <td class="aright padr">{{f_order_id}}</td> <td class="aleft padl">Datum vystavení:</td> <td class="aright"> {%if dates.invoice %} {{dates.invoice.strftime('%d.%m.%Y')}} {%else%} &lt;PROFORMA&gt; {%endif%} </td> </tr> <tr> <td class="aleft"></td> <td class="aright padr"></td> <td class="aleft padl">Datum zdanitelného plnění:</td> <td class="aright"> {%if dates.invoice %} {{dates.invoice.strftime('%d.%m.%Y')}} {%else%} &lt;PROFORMA&gt; {%endif%} </td> </tr> </table> </fieldset> <fieldset style="background:#fff;padding:0.5em 0.75em;border:2px solid LightGrey;"> <legend><span>Objednané zboží: </span></legend> <table class="faktura_items"> <thead> <tr> {# <th>Číslo</th> #} <th style="padding-right:120px;">Název</th> <th class='aright'>Formát</th> <th class='aright'>Počet</th> <th class='aright'>Dodání</th> <th class='aright'>Cena ks</th> <th class='aright'>Bez DPH</th> <th class='aright'>Sazba DPH</th> <th class='aright'>DPH</th> <th class='aright'>Celkem</th> </tr> </thead> <tbody> {% for one in items %} <tr class = "items_row nonbreakable"> <td style="text-align:left;"> <div> {{one.title}} {%if one.subtitle %} <br/> <i>{{one.subtitle}}</i> {%endif%} {%if one.c_type == "voucher" and states.paid_state == 'paid' %} <br/> <i>Kód:{{one.ident}}</i> {%endif%} </div> </td> <td style="text-align:right;">{{one.c_type_text()}}</td> <td>{%if one.count %}{{one.count}}{%endif%}</td> <td>{% if one.physical %} zboží {%else%} online {%endif%}</td> <td class='aright nowrap'>{{"%0.2f"|format(one.one_brutto())}} Kč</td> <td class='aright nowrap'>{{"%0.2f"|format(one.full_netto())}} Kč</td> <td class='aright nowrap'>{%if one.dph_ratio is none%}-{%else%}{{"%d"|format(one.dph_ratio)}} %{%endif%}</td> <td class='aright nowrap'>{{"%0.2f"|format(one.full_dph())}} Kč</td> <td class='aright nowrap'>{{"%0.2f"|format(one.full_brutto())}} Kč</td> </tr> {%if one.real_discount %} <tr class = "items_row nonbreakable"> <td style="text-align:left;"> <div> Sleva: {{one.title}} {%if one.subtitle %} <br/> <i>{{one.subtitle}}</i> {%endif%} </div> </td> <td style="text-align:right;">{# format #}</td> <td>{# pocet #}</td> <td>{# zpusob dodani #}</td> <td class='aright nowrap'>{# cena za ks #}</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.discount_netto())}} Kč {# bez DPH #}</td> <td class='aright nowrap'>{%if one.dph_ratio is none%}-{%else%}{{"%d"|format(one.dph_ratio)}} %{%endif%}</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.discount_dph())}} Kč</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.discount_brutto())}} Kč</td> </tr> {%endif%} {# {%if one.used_future_commitment %} <tr class = "items_row nonbreakable"> <td style="text-align:left;"> <div> Využití budoucích závazků </div> </td> <td style="text-align:right;">{ # format # }</td> <td>{ # pocet # }</td> <td>{ # zpusob dodani # }</td> <td class='aright nowrap'>{ # cena za ks # }</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.used_future_commitment_netto())}} Kč { # bez DPH # }</td> <td class='aright nowrap'>0 %</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.used_future_commitment_dph())}} Kč</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.used_future_commitment_brutto())}} Kč</td> </tr> {%endif%} #} {% endfor %} {% for one in discounts if one.voucher.future_commitment and one.applied_value%} <tr class = "items_row nonbreakable"> <td style="text-align:left;"> <div> Využití budoucích závazků: Kupón {{one.voucher.voucher_id}} </div> </td> <td style="text-align:right;">{# format #}</td> <td>{# pocet #}</td> <td>{# zpusob dodani #}</td> <td class='aright nowrap'>{# cena za ks #}</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.applied_value)}} Kč {# bez DPH #}</td> <td class='aright nowrap'>0 %</td> <td class='aright nowrap'>-{{"%0.2f"|format(0)}} Kč</td> <td class='aright nowrap'>-{{"%0.2f"|format(one.applied_value)}} Kč</td> </tr> {% endfor %} {% if has_physical %} <tr class = "items_row"> <td style="text-align:left;"> Doprava / poštovné </td> <td style="text-align:right;">{{shipping_item.title|replace('Česká pošta','ČP')}}</td> <td></td> <td></td> <td class='aright nowrap'>{{"%0.2f"|format(shipping_item.one_brutto() + payment_item.one_brutto())}} Kč</td> <td class='aright nowrap'>{{"%0.2f"|format(shipping_item.full_netto() + payment_item.full_netto())}} Kč</td> <td class='aright nowrap'>{%if shipping_item.dph_ratio is none%}-{%else%}{{"%d"|format(shipping_item.dph_ratio)}} %{%endif%}</td> <td class='aright nowrap'>{{"%0.2f"|format(shipping_item.full_dph() + payment_item.full_dph())}} Kč</td> <td class='aright nowrap'>{{"%0.2f"|format(shipping_item.full_brutto() + payment_item.full_brutto())}} Kč</td> </tr> {%if shipping_item.real_discount or payment_item.real_discount%} <tr class = "items_row"> <td style="text-align:left;"> Sleva: Doprava / poštovné </td> <td style="text-align:right;">{# format #}</td> <td>{# pocet #}</td> <td>{# zpusob dodani #}</td> <td class='aright nowrap'>{# cena za ks #}</td> <td class='aright nowrap'>-{{"%0.2f"|format(shipping_item.discount_netto() + payment_item.discount_netto())}} Kč {# bez DPH #}</td> <td class='aright nowrap'>{%if shipping_item.dph_ratio is none%}-{%else%}{{"%d"|format(shipping_item.dph_ratio)}} %{%endif%}</td> <td class='aright nowrap'>-{{"%0.2f"|format(shipping_item.discount_dph() + payment_item.discount_dph())}} Kč</td> <td class='aright nowrap'>-{{"%0.2f"|format(shipping_item.discount_brutto() + payment_item.discount_brutto())}} Kč</td> </tr> {%endif%} {%if shipping_item.used_future_commitment or payment_item.used_future_commitment%} <tr class = "items_row nonbreakable"> <td style="text-align:left;"> <div> Využití budoucích závazků </div> </td> <td style="text-align:right;">{# format #}</td> <td>{# pocet #}</td> <td>{# zpusob dodani #}</td> <td class='aright nowrap'>{# cena za ks #}</td> <td class='aright nowrap'>-{{"%0.2f"|format(shipping_item.used_future_commitment_netto() + payment_item.used_future_commitment_netto())}} Kč {# bez DPH #}</td> <td class='aright nowrap'>0 %</td> <td class='aright nowrap'>-{{"%0.2f"|format(shipping_item.used_future_commitment_dph() + payment_item.used_future_commitment_dph())}} Kč</td> <td class='aright nowrap'>-{{"%0.2f"|format(shipping_item.used_future_commitment_brutto() + payment_item.used_future_commitment_brutto())}} Kč</td> </tr> {%endif%} {% endif %} <tr class="noborder"><td colspan=8><h4>Celkem k úhradě&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4></td> <td class='aright nowrap items_row'> <h4>{{"%0.2f"|format(pricing.total)}} Kč</h4> </td> </tr> </tbody> </table> <div class='faktura_rekapitulace nonbreakable'> <b>Rekapitulace DPH:</b> <br/> <p> Celková hodnota objednaného zboží: {{"%0.2f"|format(items.full_price)}} Kč, Celková cena za dodání: {{"%0.2f"|format(shipping_item.discounted_brutto() + payment_item.discount_brutto())}} Kč </p> <p> {%for ratio, row in pricing.dph_recapitulation.items() if row.netto%} {%if ratio is none %} položky nepodléhající DPH</b>: | - , | - , {%else%} položky podléhající <b>{{"%d"|format(ratio)}}% DPH</b>: | základ daně:{{"%0.2f"|format(row.netto)}} Kč, | {{"%d"|format(ratio)}}% daň: {{"%0.2f"|format(row.dph)}} Kč, {%endif%} | celkem: {{"%0.2f"|format(row.brutto)}} Kč <br/> {%endfor%} </p> </div> </fieldset> </div> </div> </body> </html>
Copy
Copy
Edit
/* scss/emails/_recipe.scss */