summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-11-24 22:49:29 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-11-24 22:49:29 +0100
commit7011ba2cc411164e25d0019ba875069096ffb4f6 (patch)
tree39390bf1c6f4a5ffd148d4962cb0fd76f9ff7d66
parent57ef4a0b5f816efb22691d9f9868b497a8f250a1 (diff)
Update template and clean it
-rw-r--r--templates/template.tex17
1 files changed, 8 insertions, 9 deletions
diff --git a/templates/template.tex b/templates/template.tex
index 97192b8..b98a6f6 100644
--- a/templates/template.tex
+++ b/templates/template.tex
@@ -164,6 +164,7 @@
% Client data
\section*{CLIENTE}
+ {{invoice.customer.name}}\\
{% for line in invoice.customer.address.split("\n") -%}
{{line}}\\
{% endfor -%}
@@ -179,8 +180,7 @@ Fecha: {{ invoice.date }}
\begin{tabularx}{\textwidth}{lcccc}
\toprule
- \multirow{2}{*}{\textbf{DESCRIPCIÓN}} & \textbf{PRECIO UD.} & \textbf{UNIDADES} & \textbf{BASE IMP.} & \textbf{IVA} \\
- & (€/h) & (h) & (€) & (\%) \\
+ \textbf{DESCRIPCIÓN} & \textbf{PRECIO UD.} & \textbf{UNIDADES} & \textbf{BASE IMP.} & \textbf{IVA\%} \\
\midrule
{% for i in invoice.products -%}
@@ -188,17 +188,17 @@ Fecha: {{ invoice.date }}
{% endfor -%}
\midrule
- \multirow{ 4 }{*}{
+ \multirow{ {{invoice.taxes|length + 3}} }{*}{
\begin{tabular}{c}
\textbf{FORMA DE PAGO}\\
Transferencia o ingreso bancario\\
- Banca del mal ES00 0000 0000 00000 0000 0000
+ \textbf{KUTXABANK} ES62 2095 0061 5091 0959 0870
\end{tabular}
} & & SUBTOTAL & {{invoice.base}}\\
& & IVA & {{invoice["vat-charged"]}} \\
{% for i in invoice.taxes %}
- & & {{i.name}} ({{i.ratio}}\%) & {{i.applied}} \\
+ & & {{i.name}} ({{i.ratio * 100}}\%) & {{i.applied}} \\
{% endfor %}
& & \textbf{TOTAL} & {{invoice.total}} \\
@@ -225,19 +225,18 @@ Fecha: {{ invoice.date }}
\section*{OBSERVACIONES}
{%for i in invoice["notes"].split("\n") -%}
{{i}}\\
-{%endfor -%}
+{%endfor%}
% Company data
\vfill
\begin{center}
- \textbf{Ekaitz Zárraga} \\
- Fernandez del Campo 8 Exterior 2ºD \\
+ \textbf{EKAITZ ZÁRRAGA RÍO} \\
+ Fernandez del Campo 13 Centro 6D \\
48010 Bilbao (Bizkaia) \\
NIF: 45824316J \\
\texttt{http://elenq.tech}
\end{center}
-\vspace{2ex}
% End legal note
\hrulefill