feat(finance): create finance statement and excursion summary
parent
7731c7902d
commit
6d0e7fee05
@ -0,0 +1,186 @@
|
|||||||
|
{% load static common tex_extras %}
|
||||||
|
|
||||||
|
\documentclass[a4paper]{article}
|
||||||
|
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
% remove all undefined unicode characters instead of throwing an error
|
||||||
|
\makeatletter
|
||||||
|
\def\UTFviii@undefined@err#1{}
|
||||||
|
\makeatother
|
||||||
|
\usepackage{booktabs}
|
||||||
|
\usepackage{amssymb}
|
||||||
|
\usepackage{cmbright}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{textpos}
|
||||||
|
\usepackage[colorlinks, breaklinks]{hyperref}
|
||||||
|
\usepackage{float}
|
||||||
|
\usepackage[margin=2cm]{geometry}
|
||||||
|
\usepackage{array}
|
||||||
|
\usepackage{tabularx}
|
||||||
|
\usepackage{ltablex}
|
||||||
|
|
||||||
|
\newcommand{\picpos}[4]{
|
||||||
|
\begin{textblock*}{#1}(#2, #3)
|
||||||
|
\includegraphics[width=\textwidth]{#4}
|
||||||
|
\end{textblock*}
|
||||||
|
}
|
||||||
|
|
||||||
|
% custom url command for properly formatting emails
|
||||||
|
\DeclareUrlCommand\Email{\urlstyle{same}}
|
||||||
|
% allow linebreak after every character
|
||||||
|
\expandafter\def\expandafter\UrlBreaks\expandafter{\UrlBreaks
|
||||||
|
\do\/\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k
|
||||||
|
\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v
|
||||||
|
\do\w\do\x\do\y\do\z
|
||||||
|
\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K
|
||||||
|
\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V
|
||||||
|
\do\W\do\X\do\Y\do\Z}
|
||||||
|
|
||||||
|
\renewcommand{\arraystretch}{1.5}
|
||||||
|
|
||||||
|
\newcolumntype{L}{>{\hspace{0pt}\raggedright\arraybackslash}X}
|
||||||
|
\newcolumntype{S}{>{\raggedright\arraybackslash\hsize=0.7\hsize}X}
|
||||||
|
|
||||||
|
\newcommand{\tickedbox}{
|
||||||
|
\makebox[0pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$\checkmark$}
|
||||||
|
}
|
||||||
|
\newcommand{\checkbox}{
|
||||||
|
\makebox[0pt][l]{$\square$}
|
||||||
|
}
|
||||||
|
\begin{document}
|
||||||
|
% HEADER RIGHT
|
||||||
|
{% settings_value 'DEFAULT_STATIC_PATH' as static_root %}
|
||||||
|
\picpos{4.5cm}{11.5cm}{0cm}{%
|
||||||
|
{{ static_root }}/general/img/dav_logo_sektion.png%
|
||||||
|
}
|
||||||
|
\begin{textblock*}{5cm}(12cm, 2.3cm)
|
||||||
|
\begin{flushright}
|
||||||
|
\small
|
||||||
|
\noindent Deutscher Alpenverein e. V. \\
|
||||||
|
Sektion {{ settings.SEKTION }} \\
|
||||||
|
{{ settings.SEKTION_STREET }} \\
|
||||||
|
{{ settings.SEKTION_TOWN }} \\
|
||||||
|
Tel.: {{ settings.SEKTION_TELEPHONE }} \\
|
||||||
|
Fax: {{ settings.SEKTION_TELEFAX }} \\
|
||||||
|
{{ settings.SEKTION_CONTACT_MAIL }} \\
|
||||||
|
\end{flushright}
|
||||||
|
\end{textblock*}
|
||||||
|
|
||||||
|
% HEADLINE
|
||||||
|
{\noindent\LARGE{Abrechnungs- und Zuschussbeleg\\[2mm]Sektionsveranstaltung}}\\[1mm]
|
||||||
|
\textit{Erstellt: {{ creation_date }} }\\
|
||||||
|
|
||||||
|
{% if excursion %}
|
||||||
|
\noindent\textbf{\large Ausfahrt}
|
||||||
|
% DESCRIPTION TABLE
|
||||||
|
\begin{table}[H]
|
||||||
|
\begin{tabular}{ll}
|
||||||
|
Aktivität: & {{ excursion.name|esc_all }} \\
|
||||||
|
Ordnungsnummer & {{ excursion.code|esc_all }} \\
|
||||||
|
Ort / Stützpunkt: & {{ excursion.place|esc_all }} \\
|
||||||
|
Zeitraum: & {{ excursion.duration|esc_all}} Tage ({{ excursion.time_period_str|esc_all }}) \\
|
||||||
|
Teilnehmer*innen: & {{ excursion.participant_count }} der Gruppe(n) {{ excursion.groups_str|esc_all }} \\
|
||||||
|
Betreuer*innen: & {{excursion.staff_count|esc_all }} ({{ excursion.staff_str|esc_all }}) \\
|
||||||
|
Art der Tour: & {% checked_if_true 'Gemeinschaftstour' excursion.get_tour_type %}
|
||||||
|
{% checked_if_true 'Führungstour' excursion.get_tour_type %}
|
||||||
|
{% checked_if_true 'Ausbildung' excursion.get_tour_type %} \\
|
||||||
|
Anreise: & {% checked_if_true 'ÖPNV' excursion.get_tour_approach %}
|
||||||
|
{% checked_if_true 'Muskelkraft' excursion.get_tour_approach %}
|
||||||
|
{% checked_if_true 'Fahrgemeinschaften' excursion.get_tour_approach %}
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\noindent\textbf{\large Zuschüsse und Aufwandsentschädigung}
|
||||||
|
{% if excursion.approved_staff_count > 0 %}
|
||||||
|
\noindent Gemäß Beschluss des Jugendausschusses gelten folgende Sätze für Zuschüsse pro genehmigter Jugendleiter*in:
|
||||||
|
|
||||||
|
\begin{table}[H]
|
||||||
|
\centering
|
||||||
|
\begin{tabular}{lllr}
|
||||||
|
\toprule
|
||||||
|
\textbf{Posten} & \textbf{Einzelsatz} & \textbf{Anzahl} & \textbf{Gesamtbetrag pro JL} \\
|
||||||
|
\midrule
|
||||||
|
Zuschuss Übernachtung & {{ statement.price_per_night }} € / Nacht & {{ statement.nights }} Nächte & {{ statement.nights_per_yl }} € \\
|
||||||
|
Zuschuss Anreise & {{statement.euro_per_km}} € / km ({{ statement.means_of_transport }}) & {{ statement.kilometers_traveled }} km & {{ statement.transportation_per_yl }} € \\
|
||||||
|
Aufwandsentschädigung & {{ statement.allowance_per_day }},00 € / Tag & {{ statement.duration }} Tage & {{ statement.allowance_per_yl }} € \\
|
||||||
|
\midrule
|
||||||
|
\textbf{Summe}& & & \textbf{ {{ statement.total_per_yl }} }€\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\noindent Gemäß JDAV-Betreuungsschlüssel können bei {{ excursion.participant_count }} Teilnehmer*innen
|
||||||
|
bis zu {{ excursion.approved_staff_count }} Jugendleiter*innen {% if excursion.approved_extra_youth_leader_count %}
|
||||||
|
(davon {{ excursion.approved_extra_youth_leader_count }} durch das Jugendreferat zusätzlich genehmigt){% endif %} bezuschusst werden.
|
||||||
|
Zuschüsse und Aufwandsentschädigung werden wie folgt abgerufen:
|
||||||
|
\begin{itemize}
|
||||||
|
|
||||||
|
{% if statement.allowances_paid > 0 %}
|
||||||
|
|
||||||
|
\item Eine Aufwandsentschädigung von {{ statement.allowance_per_yl }} € pro Jugendleiter*in wird überwiesen an:
|
||||||
|
{% for m in statement.allowance_to.all %}{% if forloop.counter > 1 %}, {% endif %}{{ m.name }}{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
\item Keiner*r der Jugendleiter*innen nimmt eine Aufwandsentschädigung in Anspruch.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if statement.subsidy_to %}
|
||||||
|
\item Der Zuschuss zu Übernachtung und Anreise für alle Jugendleiter*innen in Höhe von {{ statement.total_subsidies }} € wird überwiesen an:
|
||||||
|
{{ statement.subsidy_to.name }}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
\item Zuschüsse zu Übernachtung und Anreise werden nicht in Anspruch genommen.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
\end{itemize}
|
||||||
|
{% else %}
|
||||||
|
\noindent Für die vorliegende Ausfahrt sind keine Jugendleiter*innen anspruchsberechtigt für Zuschüsse oder Aufwandsentschädigung.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
\vspace{110pt}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
\vspace{12pt}
|
||||||
|
|
||||||
|
\noindent\textbf{\large Ausgabenübersicht}
|
||||||
|
\nopagebreak
|
||||||
|
\begin{table}[H]
|
||||||
|
\centering
|
||||||
|
\begin{tabular}{lllr}
|
||||||
|
\toprule
|
||||||
|
\textbf{Titel} & \textbf{Beschreibung} & \textbf{Auszahlung an} & \textbf{Betrag} \\
|
||||||
|
\midrule
|
||||||
|
|
||||||
|
{% if statement.bills_covered %}
|
||||||
|
{% for bill in statement.bills_covered %}
|
||||||
|
{{ forloop.counter }}. {{ bill.short_description}} & {{ bill.explanation}} & {{ bill.paid_by.name }} & {{ bill.amount }} € \\
|
||||||
|
{% endfor %}
|
||||||
|
\midrule
|
||||||
|
\multicolumn{3}{l}{\textbf{Summe übernommene Ausgaben}} & \textbf{ {{ statement.total_bills }} }€\\
|
||||||
|
{% endif %}
|
||||||
|
{% if excursion.approved_staff_count > 0 and statement.allowances_paid > 0 or excursion.approved_staff_count > 0 and statement.subsidy_to %}
|
||||||
|
\midrule
|
||||||
|
{% if statement.allowances_paid > 0 %}
|
||||||
|
{% for m in statement.allowance_to.all %}
|
||||||
|
Aufwandsentschädigung & & {{ m.name }} & {{ statement.allowance_per_yl }} €\\
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if statement.subsidy_to %}
|
||||||
|
\multicolumn{2}{l}{Zuschuss Übernachtung und Anreise für alle Jugendleiter*innen} & {{ statement.subsidy_to.name }} & {{ statement.total_subsidies}} €\\
|
||||||
|
{% endif %}
|
||||||
|
\midrule
|
||||||
|
\multicolumn{3}{l}{\textbf{Summe Zuschüsse und Aufwandsentschädigung}} & \textbf{ {{ statement.total_staff }} }€\\
|
||||||
|
{%endif %}
|
||||||
|
{% if statement.bills_covered and excursion.approved_staff_count > 0 %}
|
||||||
|
\midrule
|
||||||
|
\textbf{Gesamtsumme}& & & \textbf{ {{ statement.total }} }€\\
|
||||||
|
{% endif %}
|
||||||
|
\bottomrule
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\noindent Dieser Beleg wird automatisch erstellt und daher nicht unterschrieben.
|
||||||
|
|
||||||
|
|
||||||
|
\end{document}
|
||||||
Loading…
Reference in New Issue