hv2-all-in-one/cli/accountStatement.tmpl

60 lines
2.0 KiB
Cheetah
Raw Normal View History

2022-02-13 12:30:10 +01:00
\documentclass[10pt]{article}
\usepackage{german}
\usepackage{eurosym}
\usepackage[a4paper, landscape=true, left=2cm, right=2cm, top=2cm]{geometry}
\usepackage{icomma}
\usepackage{longtable}
\usepackage{color}
\setlength{\parindent}{0pt}
\begin{document}
2022-03-31 22:30:09 +02:00
\subsection*{Account Statement $year}
2022-02-13 12:30:10 +01:00
2022-03-31 22:30:09 +02:00
\begin{longtable}{|r|r|p{6cm}|r|r|r|p{3cm}|r|p{5cm}|}
\hline \textcolor{blue}{\bf{ID}} & \textcolor{blue}{\bf{Date}} & \textcolor{blue}{\bf{Description}} & \textcolor{blue}{\bf{Amount}} & \textcolor{blue}{\bf{DocNo}} & \textcolor{blue}{\bf{Year}} & \textcolor{blue}{\bf{Category}} & \textcolor{blue}{\bf{IsRef}} & \textcolor{blue}{\bf{BaseAccount}} \\ \hline \hline
2022-02-13 12:30:10 +01:00
\endfirsthead
2022-03-31 22:30:09 +02:00
\hline \textcolor{blue}{\bf{ID}} & \textcolor{blue}{\bf{Date}} & \textcolor{blue}{\bf{Description}} & \textcolor{blue}{\bf{Amount}} & \textcolor{blue}{\bf{DocNo}} & \textcolor{blue}{\bf{Year}} & \textcolor{blue}{\bf{Category}} & \textcolor{blue}{\bf{IsRef}} & \textcolor{blue}{\bf{BaseAccount}} \\ \hline \hline
2022-02-13 12:30:10 +01:00
\endhead
2022-03-31 21:40:49 +02:00
\multicolumn{9}{r}{\em{to be continued}}
2022-02-13 12:30:10 +01:00
\endfoot
2022-03-31 21:40:49 +02:00
2022-02-13 12:30:10 +01:00
\endlastfoot
#for $entry in $entries
\tt{$entry['id']} & \tt{$entry['created_at']} & \tt{$entry['description']} & #slurp
2022-03-31 21:40:49 +02:00
#if $entry['amount'] <= 0
2022-02-13 12:30:10 +01:00
\textcolor{red}{#slurp
#end if
2022-03-31 22:30:09 +02:00
\tt{$entry['amount']} \,\euro{}#slurp
2022-03-31 21:40:49 +02:00
#if $entry['amount'] <= 0
2022-02-13 12:30:10 +01:00
}#slurp
#end if
2022-03-31 21:40:49 +02:00
& \tt{$entry['document_no']} & \tt{$entry['fiscal_year']} & \tt{$entry['category']} & \tt{$entry['is_reference']} & \tt{{$entry['base_account'].replace('_', ' ') }} \\ \hline
2022-02-13 12:30:10 +01:00
#end for
\end{longtable}
2022-03-31 22:30:09 +02:00
\pagebreak
\subsection*{Overviews}
\begin{tabular}{|l|r|} \hline
\hline \textcolor{blue}{\bf{category}} & \textcolor{blue}{\bf{sum}} \\
#for $entry in $overview
\hline \tt{$entry['category']} & #slurp
#if $entry['sum'] <= 0
\textcolor{red}{#slurp
#end if
\tt{$entry['sum']} \,\euro{}#slurp
#if $entry['sum'] <= 0
}#slurp
#end if
\\
#end for
\hline \hline related & \tt{$related['sum']} \,\euro{} \\
\hline unrelated & \tt{$unrelated['sum']} \,\euro{} \\
\hline \hline
\end{tabular}
2022-02-13 12:30:10 +01:00
\end{document}