8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 12:53:11 +00:00
re2o/cotisations/templates/cotisations/factures.tex

151 lines
4.4 KiB
TeX
Raw Normal View History

{% load i18n %}
{% language 'fr' %}
2016-07-09 15:16:44 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Invoice Template
% LaTeX Template
% Version 1.0 (3/11/12)
2016-07-09 15:16:44 +00:00
%% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Trey Hunner (http://www.treyhunner.com/)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
2016-07-09 15:16:44 +00:00
% This template requires the invoice.cls file to be in the same directory as
% the .tex file. The invoice.cls file provides the style used for structuring the
% document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
2016-07-09 15:16:44 +00:00
% DOCUMENT CONFIGURATION
%----------------------------------------------------------------------------------------
\documentclass[12pt]{article} % Use the custom invoice class (invoice.cls)
\usepackage[utf8]{inputenc}
\usepackage[letterpaper,hmargin=0.79in,vmargin=0.79in]{geometry}
\usepackage{longtable}
\usepackage{graphicx}
2016-07-09 21:26:17 +00:00
\usepackage{tabularx}
2016-07-13 23:54:06 +00:00
\usepackage{eurosym}
\usepackage{multicol}
\pagestyle{empty} % No page numbers
\linespread{1.5} % Line spacing
\newcommand{\doublehline}{\noalign{\hrule height 1pt}}
2016-07-09 21:26:17 +00:00
\setlength{\parindent}{0cm}
\begin{document}
2018-12-29 14:15:33 +00:00
%----------------------------------------------------------------------------------------
% HEADING SECTION
%----------------------------------------------------------------------------------------
\begin{center}
{\Huge\bf {{asso_name|safe}} } % Company providing the invoice
\end{center}
\bigskip
\hrule
\smallskip
{\setlength{\tabcolsep}{0pt} % Make table columns tighter, usefull for postionning
\begin{tabular}{l l}
{\bf Adresse :}~ & {{line1|safe}} \\
& {{line2|safe}} \\
\end{tabular}
\hfill
\begin{tabular}{r}
{\bf Téléphone :} {{phone}} \\
{\bf Mail :} {{email|safe}} \\
\end{tabular}
}
\\
{\bf Siret :} {{siret|safe}}
\vspace{2cm}
2018-12-29 14:15:33 +00:00
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l r}
{\bf Pour :} {{recipient_name|safe}} & {\bf Date :} {{DATE}} \\
{\bf Adresse :} {% if address is None %}Aucune adresse renseignée{% else %}{{address}}{% endif %} & \\
{% if fid is not None %}
2018-12-31 22:58:37 +00:00
{% if is_estimate %}
{\bf Devis n\textsuperscript{o} :} {{ fid }} & \\
{% else %}
{\bf Facture n\textsuperscript{o} :} {{ fid }} & \\
{% endif %}
2018-12-31 22:58:37 +00:00
{% endif %}
\end{tabular*}
\\
%----------------------------------------------------------------------------------------
% TABLE OF EXPENSES
%----------------------------------------------------------------------------------------
2018-12-29 14:15:33 +00:00
\begin{tabularx}{\textwidth}{|X|r|r|r|}
\hline
\textbf{Désignation} & \textbf{Prix Unit.} \euro & \textbf{Quantité} & \textbf{Prix total} \euro\\
\doublehline
2018-12-29 14:15:33 +00:00
{% for a in article %}
{{a.name}} & {{a.price}} \euro & {{a.quantity}} & {{a.total_price}} \euro\\
\hline
{% endfor %}
2018-12-29 14:15:33 +00:00
\end{tabularx}
2018-12-29 14:15:33 +00:00
\vspace{1cm}
\hfill
\begin{tabular}{|l|r|}
\hline
\textbf{Total} & {{total|floatformat:2}} \euro \\
2018-12-31 22:58:37 +00:00
{% if not is_estimate %}
\textbf{Votre règlement} & {% if paid %}{{total|floatformat:2}}{% else %} 00,00 {% endif %} \euro \\
\doublehline
\textbf{À PAYER} & {% if not paid %}{{total|floatformat:2}}{% else %} 00,00 {% endif %} \euro\\
2018-12-31 22:58:37 +00:00
{% endif %}
\hline
\end{tabular}
2018-12-29 14:15:33 +00:00
\vspace{1cm}
2018-12-29 14:25:52 +00:00
\begin{tabularx}{\textwidth}{r X}
2018-12-29 14:15:33 +00:00
\hline
\textbf{Moyen de paiement} & {{payment_method|default:"Non spécifié"}} \\
\hline
2018-12-29 14:25:52 +00:00
{% if remark %}
\textbf{Remarque} & {{remark|safe}} \\
\hline
{% endif %}
2018-12-31 22:58:37 +00:00
{% if end_validity %}
\textbf{Validité} & Jusqu'au {{end_validity}} \\
\hline
{% endif %}
2018-12-29 14:15:33 +00:00
\end{tabularx}
\vfill
%----------------------------------------------------------------------------------------
% FOOTNOTE
%----------------------------------------------------------------------------------------
2018-12-29 14:15:33 +00:00
\hrule
\smallskip
\footnotesize{TVA non applicable, art. 293 B du CGI}
%----------------------------------------------------------------------------------------
\end{document}
{% endlanguage %}