From e72d6924a6db26c35acfebc471908fdf26aac56b Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 16 Mar 2018 10:24:30 +0100 Subject: [PATCH] emails: add templates for invoice notifications (#22560) --- .../lingo/combo/invoice_email_notification_body.html | 16 ++++++++++++++++ .../lingo/combo/invoice_email_notification_body.txt | 14 ++++++++++++++ .../lingo/combo/invoice_email_notification_subject.txt | 1 + 3 files changed, 31 insertions(+) create mode 100644 templates/lingo/combo/invoice_email_notification_body.html create mode 100644 templates/lingo/combo/invoice_email_notification_body.txt create mode 100644 templates/lingo/combo/invoice_email_notification_subject.txt diff --git a/templates/lingo/combo/invoice_email_notification_body.html b/templates/lingo/combo/invoice_email_notification_body.html new file mode 100644 index 0000000..58c33ac --- /dev/null +++ b/templates/lingo/combo/invoice_email_notification_body.html @@ -0,0 +1,16 @@ +{% extends "emails/body_base.html" %} + +{% block content %} +

Votre nouvelle facture n° {{ item.id }}, emise le {{ item.creation_date|date:"DATE_FORMAT" }} + d'un montant de {{ item.amount }}€ est disponible.

+ +{% if item.online_payment %} +

Vous pouvez la voir et payer en ligne sur {{ payment_url }}.

+{% else %} +

Vous pouvez la voir en allant sur {{ portal_url }}.

+{% endif %} + +{% if item.no_online_payment_reason == 'autobilling' %} +

Le montant de la facture sera débité de votre compte le {{ item.payment_limit_date|date:"DATE_FORMAT" }}.

+{% endif %} +{% endblock %} diff --git a/templates/lingo/combo/invoice_email_notification_body.txt b/templates/lingo/combo/invoice_email_notification_body.txt new file mode 100644 index 0000000..601fd67 --- /dev/null +++ b/templates/lingo/combo/invoice_email_notification_body.txt @@ -0,0 +1,14 @@ +{% extends "emails/body_base.html" %} + +{% block content %} +Votre nouvelle facture n° {{ item.id }}, emise le {{ item.creation_date|date:"DATE_FORMAT" }} d'un montant de {{ item.amount }}€ +est disponible. + +{% if item.online_payment %} +Vous pouvez la voir et payer en ligne sur {{ payment_url }}. +{% else %}Vous pouvez la voir en allant sur {{ portal_url }}.{% endif %} + +{% if item.no_online_payment_reason == 'autobilling' %} +Le montant de la facture sera débité de votre compte le {{ item.payment_limit_date|date:"DATE_FORMAT" }}. +{% endif %} +{% endblock %} diff --git a/templates/lingo/combo/invoice_email_notification_subject.txt b/templates/lingo/combo/invoice_email_notification_subject.txt new file mode 100644 index 0000000..f1145d8 --- /dev/null +++ b/templates/lingo/combo/invoice_email_notification_subject.txt @@ -0,0 +1 @@ +Facture nr {{ item.id }} disponible -- 2.16.2