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

38 lines
1.5 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}
\subsection*{Kontoauszug $year}
2022-03-31 21:40:49 +02:00
\begin{longtable}{|r|r|p{5cm}|r|r|r|p{3cm}|r|p{5cm}|}
\hline \textcolor{blue}{\tt{id}} & \textcolor{blue}{\tt{date}} & \textcolor{blue}{\tt{description}} & \textcolor{blue}{\tt{amount}} & \textcolor{blue}{\tt{docNo}} & \textcolor{blue}{\tt{year}} & \textcolor{blue}{\tt{category}} & \textcolor{blue}{\tt{isRef}} & \textcolor{blue}{\tt{baseAccount}} \\ \hline \hline
2022-02-13 12:30:10 +01:00
\endfirsthead
2022-03-31 21:40:49 +02:00
\hline \textcolor{blue}{\tt{id}} & \textcolor{blue}{\tt{date}} & \textcolor{blue}{\tt{description}} & \textcolor{blue}{\tt{amount}} & \textcolor{blue}{\tt{docNo}} & \textcolor{blue}{\tt{year}} & \textcolor{blue}{\tt{category}} & \textcolor{blue}{\tt{isRef}} & \textcolor{blue}{\tt{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
\tt{$entry['amount']}#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}
\end{document}