2016-07-08 01:27:02 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% language 'fr' %}
|
2016-07-09 15:16:44 +00:00
|
|
|
|
2016-07-08 01:27:02 +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:
|
2016-07-08 01:27:02 +00:00
|
|
|
% 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
|
2016-07-08 01:27:02 +00:00
|
|
|
% 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
|
2016-07-08 01:27:02 +00:00
|
|
|
%----------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\documentclass[12pt]{article} % Use the custom invoice class (invoice.cls)
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
|
|
\usepackage[frenchb]{babel}
|
|
|
|
\usepackage[letterpaper,hmargin=0.79in,vmargin=0.79in]{geometry}
|
|
|
|
\usepackage{calc} % Counters for totaling hours and cost
|
|
|
|
\usepackage{longtable}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage{calc}
|
2016-07-09 21:26:17 +00:00
|
|
|
\usepackage{tabularx}
|
2016-07-08 01:27:02 +00:00
|
|
|
|
|
|
|
\pagestyle{empty} % No page numbers
|
|
|
|
\linespread{1.5} % Line spacing
|
|
|
|
|
|
|
|
\setlength{\doublerulesep}{\arrayrulewidth} % Double rules look like one thick one
|
|
|
|
\def \tab {\hspace*{3ex}} % Define \tab to create some horizontal white space
|
2016-07-09 21:26:17 +00:00
|
|
|
\setlength{\parindent}{0cm}
|
2016-07-08 01:27:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
%\newcommand{\product}[5][0][0][0][0][0]{
|
|
|
|
%\setlength{ptotal}{#3*\real{#4}}
|
|
|
|
%\addtolength{total}{#3*\real{#4}}
|
|
|
|
|
|
|
|
%----------------------------------------------------------------------------------------
|
|
|
|
% HEADING SECTION
|
|
|
|
%----------------------------------------------------------------------------------------
|
|
|
|
\begin{titlepage}
|
2016-07-09 21:26:17 +00:00
|
|
|
%\begin{textblock}{4cm}(20mm,5mm)
|
2016-07-11 22:05:07 +00:00
|
|
|
%\includegraphics[scale=0.3]{/static_files/rezo-logo.png}
|
|
|
|
%\end{textblock}
|
2016-07-08 01:27:02 +00:00
|
|
|
\end{titlepage}
|
2016-07-09 21:26:17 +00:00
|
|
|
\hfil{\Huge\bf {{asso_name}} }\hfil % Company providing the invoice
|
2016-07-08 01:27:02 +00:00
|
|
|
\bigskip\break % Whitespace
|
2016-07-09 21:26:17 +00:00
|
|
|
\hrule % Horizontal line \\
|
|
|
|
\vspace{0.5cm}
|
|
|
|
{{line1}} \hfill {{phone}} \\ % Your address and contact information
|
|
|
|
{{line2}} \hfill {{email}} \\
|
|
|
|
Siret : {{siret}}
|
2016-07-08 01:27:02 +00:00
|
|
|
\\ \\
|
2016-07-11 22:05:07 +00:00
|
|
|
{\bf À :} \tab {{dest.name}} {{dest.surname}} \\ % Invoice recipient
|
|
|
|
{\bf Chambre :} \tab {% if dest.room = None %} Aucune chambre {% else %}{{dest.room}}{% endif %} \\
|
2016-07-08 01:27:02 +00:00
|
|
|
|
|
|
|
{\bf Date:} \tab {{DATE}} \\ % Invoice date
|
|
|
|
|
2016-07-11 22:05:07 +00:00
|
|
|
{\bf Facture \no :} \tab {{ fid }} \\ %
|
2016-07-08 01:27:02 +00:00
|
|
|
%----------------------------------------------------------------------------------------
|
|
|
|
% TABLE OF EXPENSES
|
|
|
|
%----------------------------------------------------------------------------------------
|
|
|
|
|
2016-07-09 21:26:17 +00:00
|
|
|
\begin{tabularx}{\textwidth}{|X|r|r|r|}
|
2016-07-08 01:27:02 +00:00
|
|
|
\hline
|
2016-07-09 21:26:17 +00:00
|
|
|
\textbf{Désignation} & \textbf{Prix Unit.} & \textbf{Quantité} & \textbf{Prix total} \\
|
2016-07-08 01:27:02 +00:00
|
|
|
\hline
|
|
|
|
|
2016-07-09 21:26:17 +00:00
|
|
|
|
|
|
|
{% for a in article %}
|
|
|
|
\hline
|
|
|
|
{{a.0.name}} & {{a.0.prix}} & {{a.1}} & {{a.2}}\\
|
|
|
|
\hline
|
2016-07-08 01:27:02 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
\hline
|
|
|
|
\end{tabularx}
|
|
|
|
|
|
|
|
%\setcounter{paid}{0}
|
|
|
|
%\setcounter{topay}{\real{\value{total}}-\value{paid}}
|
2016-07-09 21:26:17 +00:00
|
|
|
\vspace{1cm}
|
2016-07-08 01:27:02 +00:00
|
|
|
\hfill
|
|
|
|
\begin{tabular}{|l|r|}
|
|
|
|
\hline
|
2016-07-09 21:26:17 +00:00
|
|
|
\textbf{Total} & {{total|floatformat:2}} \\
|
|
|
|
\textbf{Votre règlement} & {% if paid %}{{total|floatformat:2}}{% else %} 00,00 {% endif %} \\
|
2016-07-08 01:27:02 +00:00
|
|
|
\hline
|
2016-07-09 21:26:17 +00:00
|
|
|
\textbf{À PAYER} & {% if not paid %}{{total|floatformat:2}}{% else %} 00,00 {% endif %}\\
|
2016-07-08 01:27:02 +00:00
|
|
|
\hline
|
|
|
|
\hline
|
|
|
|
|
|
|
|
\end{tabular}
|
|
|
|
|
|
|
|
\vspace{1.5cm} % Whitespace
|
|
|
|
\hrule % Horizontal line
|
2016-07-11 22:05:07 +00:00
|
|
|
\vspace{0.25cm}
|
2016-07-08 01:27:02 +00:00
|
|
|
\footnotesize{TVA non applicable, art. 293 B du CGI}
|
|
|
|
|
|
|
|
{% endlanguage %}
|
|
|
|
%----------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\end{document}
|