Files
scripts_serv/ledger/custom/receipt.tex
T
2026-10-02 22:35:11 +02:00

96 lines
2.0 KiB
TeX

<?lsmb# This is a comment block; it's ignored by the template engine.
Version: 1.1
Date: 2022-07-22
File: receipt.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
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}
\pagestyle{myheadings}
\thispagestyle{empty}
\ifpdftex
%% (pdf)latex
\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont
\fi
\parbox[t]{12cm}{
<?lsmb company ?>
<?lsmb address ?>}
\hfill
\parbox[t]{6cm}{\hfill <?lsmb source ?>}
\vspace*{0.6cm}
<?lsmb text_amount ?> \dotfill <?lsmb decimal ?>/100 \makebox[0.5cm]{\hfill}
\vspace{0.5cm}
\hfill <?lsmb datepaid ?> \makebox[2cm]{\hfill} <?lsmb amount ?>
% different date format for datepaid
% <?lsmb DD ?><?lsmb MM ?><?lsmb YYYY ?>
\vspace{0.5cm}
<?lsmb name ?>
<?lsmb address1 ?>
<?lsmb address2 ?>
<?lsmb city ?>
<?lsmb IF state ?>
\hspace{-0.1cm}, <?lsmb state ?>
<?lsmb END ?>
<?lsmb zipcode ?>
<?lsmb country ?>
\vspace{1.8cm}
<?lsmb memo ?>
\vspace{0.8cm}
<?lsmb company ?>
\vspace{0.5cm}
<?lsmb name ?> \hfill <?lsmb datepaid ?> \hfill <?lsmb source ?>
\vspace{0.5cm}
\begin{tabularx}{\textwidth}{lXrr@{}}
\textbf{<?lsmb text('Invoice No.') ?>} & \textbf{<?lsmb text('Invoice Date') ?>}
& \textbf{<?lsmb text('Due') ?>} & \textbf{<?lsmb text('Applied') ?>} \\
<?lsmb FOREACH invnumber ?>
<?lsmb lc = loop.index ?>
<?lsmb invnumber.${lc} ?> & <?lsmb invdate.${lc} ?> \dotfill
& <?lsmb due.${lc} ?> & <?lsmb paid.${lc} ?> \\
<?lsmb END ?>
\end{tabularx}
\vspace{1cm}
<?lsmb memo ?>
\vfill
\end{document}
<?lsmb END -?>