use proper longtable for report
This commit is contained in:
parent
215c6db54c
commit
2ddd4cb330
@ -2,6 +2,7 @@
|
|||||||
\usepackage{url}
|
\usepackage{url}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage{longtable}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
@ -13,14 +14,14 @@
|
|||||||
The balance of the escrow account should
|
The balance of the escrow account should
|
||||||
be {\bf
|
be {\bf
|
||||||
\mbox{
|
\mbox{
|
||||||
{{ data.report_denomination_balance[0].total_escrow_balance.value }}.{{ data.report_denomination_balance[0].total_escrow_balance.fraction }}
|
{{ data.report_denomination_balance[0].total_escrow_balance.value }}.{{ data.report_denomination_balance[0].total_escrow_balance.fraction }}
|
||||||
{{ data.report_denomination_balance[0].total_escrow_balance.currency }}}}.
|
{{ data.report_denomination_balance[0].total_escrow_balance.currency }}}}.
|
||||||
|
|
||||||
\noindent
|
\noindent
|
||||||
The active operational risk stands at
|
The active operational risk stands at
|
||||||
\mbox{
|
\mbox{
|
||||||
{\bf
|
{\bf
|
||||||
{{ data.report_denomination_balance[0].total_active_risk.value }}.{{ data.report_denomination_balance[0].total_active_risk.fraction }}
|
{{ data.report_denomination_balance[0].total_active_risk.value }}.{{ data.report_denomination_balance[0].total_active_risk.fraction }}
|
||||||
{{ data.report_denomination_balance[0].total_active_risk.currency }}}}.
|
{{ data.report_denomination_balance[0].total_active_risk.currency }}}}.
|
||||||
|
|
||||||
|
|
||||||
@ -52,6 +53,8 @@ The active operational risk stands at
|
|||||||
|
|
||||||
\section{Irregularities}
|
\section{Irregularities}
|
||||||
|
|
||||||
|
\subsection{Emergencies}
|
||||||
|
|
||||||
{% if data.emergencies|length() == 0 %}
|
{% if data.emergencies|length() == 0 %}
|
||||||
{\bf No emergencies detected.}
|
{\bf No emergencies detected.}
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -62,17 +65,28 @@ The active operational risk stands at
|
|||||||
\end{table}
|
\end{table}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
\subsection{Reserve inconsistencies}
|
||||||
|
|
||||||
{% if data.reserve_inconsistencies|length() == 0 %}
|
{% if data.reserve_inconsistencies|length() == 0 %}
|
||||||
{\bf No reserve inconsistencies detected.}
|
{\bf No reserve inconsistencies detected.}
|
||||||
{% else %}
|
{% else %}
|
||||||
\begin{table}
|
\begin{longtable}{p{1.5cm}|rl|rl|p{4cm}}
|
||||||
|
{\bf Reserve} & \multicolumn{2}{|c|}{ {\bf Expected}} & \multicolumn{2}{|c|}{ {\bf Observed}} & {\bf Diagnostic} \\ \hline \hline
|
||||||
|
\endfirsthead
|
||||||
|
{\bf Reserve} & \multicolumn{2}{|c|}{ {\bf Expected}} & \multicolumn{2}{|c|}{ {\bf Observed}} & {\bf Diagnostic} \\ \hline \hline
|
||||||
|
\endhead
|
||||||
|
\hline \hline
|
||||||
|
{\bf Reserve} & \multicolumn{2}{|c|}{ {\bf Expected}} & \multicolumn{2}{|c|}{ {\bf Observed}} & {\bf Diagnostic} \\
|
||||||
|
\endfoot
|
||||||
|
\hline
|
||||||
|
% FIXME: replace these with the summary column adding up the amounts!
|
||||||
|
{\bf Reserve} & \multicolumn{2}{|c|}{ {\bf Expected}} & \multicolumn{2}{|c|}{ {\bf Observed}} & {\bf Diagnostic} \\
|
||||||
\caption{Reserve inconsistencies.}
|
\caption{Reserve inconsistencies.}
|
||||||
\label{table:reserve:inconsistencies}
|
\label{table:reserve:inconsistencies}
|
||||||
\begin{tabular}{p{1.5cm}|rl|rl|p{4cm}}
|
\endlastfoot
|
||||||
{\bf Reserve} & \multicolumn{2}{|c|}{Expected} & \multicolumn{2}{|c|}{Observed} & Diagnostic \\ \hline \hline
|
|
||||||
{% for item in data.reserve_inconsistencies %}
|
{% for item in data.reserve_inconsistencies %}
|
||||||
\multicolumn{6}{l}{ {\tt {{ item.reserve_pub }} } } \\
|
\multicolumn{6}{l}{ {\tt {{ item.reserve_pub }} } } \\
|
||||||
|
\nopagebreak
|
||||||
&
|
&
|
||||||
{{ item.expected.value }}.{{ item.expected.fraction }} &
|
{{ item.expected.value }}.{{ item.expected.fraction }} &
|
||||||
{{ item.expected.currency }} &
|
{{ item.expected.currency }} &
|
||||||
@ -80,10 +94,7 @@ The active operational risk stands at
|
|||||||
{{ item.observed.currency }} &
|
{{ item.observed.currency }} &
|
||||||
{{ item.diagnostic }} \\ \hline
|
{{ item.diagnostic }} \\ \hline
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
\hline
|
\end{longtable}
|
||||||
{\bf Reserve} & Expected & Observed & Diagnostic \\
|
|
||||||
\end{tabular}
|
|
||||||
\end{table}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Loading…
Reference in New Issue
Block a user