96 lines
2.6 KiB
TeX
96 lines
2.6 KiB
TeX
<?lsmb# This is a comment block; it's ignored by the template engine.
|
|
|
|
Version: 2.0
|
|
Date: 2024-03-16
|
|
File: statement.tex
|
|
Set: demo
|
|
|
|
Template version numbers are explicitly not aligned across templates or
|
|
releases. No explicit versioning was applied before 2021-01-04.
|
|
|
|
Version Changes
|
|
2.0 Grouping of amounts by currency, in case of
|
|
exposure in multiple currencies against a single customer
|
|
|
|
1.1 Merged xelatex targetting templates with those targetting pdflatex
|
|
|
|
-?>
|
|
<?lsmb FILTER latex { format="$FORMAT($PROCESSOR)" };
|
|
# Uncomment the next line to overrule the value from System > Defaults;
|
|
# The value should be without the 'paper' suffix. E.g. "a4" for "a4paper"
|
|
# SETTINGS.papersize = "<your-format>";
|
|
INCLUDE "preamble.tex"; -?>
|
|
|
|
\begin{document}
|
|
|
|
<?lsmb FOREACH statement IN statements ?>
|
|
\pagestyle{myheadings}
|
|
\thispagestyle{empty}
|
|
|
|
\ifpdftex
|
|
%% (pdf)latex
|
|
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
|
|
\fi
|
|
|
|
<?lsmb INCLUDE letterhead ?>
|
|
|
|
\parbox[t]{.5\textwidth}{
|
|
<?lsmb statement.entity.name ?>
|
|
|
|
<?lsmb statement.address.line_one ?>
|
|
<?lsmb statement.address.city ?> <?lsmb statement.address.state ?>
|
|
<?lsmb statement.address.mail_code ?>
|
|
}
|
|
\hfill
|
|
|
|
\vspace{1cm}
|
|
|
|
\textbf{\MakeUppercase{<?lsmb text('Statement') ?>}} \hfill
|
|
\textbf{<?lsmb statementdate ?>}
|
|
|
|
\vspace{2cm}
|
|
|
|
\begin{tabular*}{\textwidth}{|ll@{\extracolsep\fill}ccrrrrrl|}
|
|
\hline
|
|
\textbf{<?lsmb text('Invoice #') ?>} & \textbf{<?lsmb text('Order #') ?>}
|
|
& \textbf{<?lsmb text('Date') ?>} & \textbf{<?lsmb text('Due') ?>} &
|
|
\textbf{<?lsmb text('Current') ?>} & \textbf{30} & \textbf{60} & \textbf{90} &
|
|
\textbf{<?lsmb text('Total') ?>} & \textbf{<?lsmb text('Currency') ?>} \\
|
|
\hline
|
|
<?lsmb- FOREACH invoice IN statement.aging.rows -?>
|
|
<?lsmb- IF invoice.html_class.defined -?>
|
|
% \hline
|
|
\textbf{<?lsmb text('Total') ?>} &
|
|
& & &
|
|
\textbf{<?lsmb invoice.c0_tc ?>} &
|
|
\textbf{<?lsmb invoice.c30_tc ?>} &
|
|
\textbf{<?lsmb invoice.c60_tc ?>} &
|
|
\textbf{<?lsmb invoice.c90_tc ?>} &
|
|
\textbf{<?lsmb invoice.total_tc ?>} &
|
|
\textbf{<?lsmb invoice.curr ?>} \\
|
|
<?lsmb- ELSE -?>
|
|
<?lsmb invoice.invnumber ?> &
|
|
<?lsmb invoice.ordnumber ?> &
|
|
<?lsmb invoice.transdate ?> &
|
|
<?lsmb invoice.duedate ?> &
|
|
<?lsmb invoice.c0_tc ?> &
|
|
<?lsmb invoice.c30_tc ?> &
|
|
<?lsmb invoice.c60_tc ?> &
|
|
<?lsmb invoice.c90_tc ?> &
|
|
<?lsmb invoice.total_tc ?> &
|
|
<?lsmb invoice.curr ?> \\
|
|
<?lsmb- END -?>
|
|
<?lsmb- IF invoice.html_class.defined -?>
|
|
\hline
|
|
<?lsmb- END -?>
|
|
<?lsmb END ?>
|
|
\end{tabular*}
|
|
|
|
\vspace{0.5cm}
|
|
|
|
\hfill
|
|
\pagebreak
|
|
<?lsmb END ?>
|
|
\end{document}
|
|
<?lsmb END -?>
|