diff --git a/apps/scripts b/apps/scripts index f41a5a32f7417a874b497640373ea3911eb1e133..630fc9a0dfd611c3e3a0b159c7c10ebf3747af5e 160000 --- a/apps/scripts +++ b/apps/scripts @@ -1 +1 @@ -Subproject commit f41a5a32f7417a874b497640373ea3911eb1e133 +Subproject commit 630fc9a0dfd611c3e3a0b159c7c10ebf3747af5e diff --git a/templates/note/mails/weekly_report.html b/templates/note/mails/weekly_report.html new file mode 100644 index 0000000000000000000000000000000000000000..e093554b3849a96c46e0649604e36ef6ebcc48dc --- /dev/null +++ b/templates/note/mails/weekly_report.html @@ -0,0 +1,41 @@ +{% load pretty_money %} +{% load render_table from django_tables2 %} + +<!DOCTYPE html> +<html lang="fr"> +<head> + <meta charset="UTF-8"> + <title>[Note Kfet] Rapport de la Note Kfet</title> + + <link rel="stylesheet" + href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" + integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" + crossorigin="anonymous"> + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" + integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" + crossorigin="anonymous"></script> +</head> +<body> +<p> + Rapport d'activité de {{ user.first_name }} {{ user.last_name }} (note : {{ user }}) + depuis le {{ last_week }} jusqu'au {{ now }}. +</p> + +<p> + Dépenses totales : {{ outcoming|pretty_money }}<br> + Apports totaux : {{ incoming|pretty_money }}<br> + Différentiel : {{ diff|pretty_money }}<br> + Nouveau solde : {{ user.note.balance|pretty_money }} +</p> + +<h4>Rapport détaillé</h4> + +{% render_table table %} + +-- +<p> + Le BDE<br> + Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %} +</p> +</body> +</html> \ No newline at end of file