From 7011ba2cc411164e25d0019ba875069096ffb4f6 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 24 Nov 2020 22:49:29 +0100 Subject: Update template and clean it --- templates/template.tex | 17 ++++++++--------- 1 file 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 -- cgit v1.2.3