<?lsmb#   This is a comment block; it's ignored by the template engine.

   Version:  1.1
   Date:     2022-07-22
   File:     check_base.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 BLOCK check_single ?>
\parbox[t]{12cm}{
  <?lsmb name ?>

  <?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 
format_amount({amount = amount, format = '1,000.00', money = 1}) ?>

% different date format for datepaid
% <?lsmb DD ?><?lsmb MM ?><?lsmb YYYY ?>

\vspace{0.5cm}

<?lsmb name ?>

<?lsmb street1 ?>

<?lsmb street2 ?>

<?lsmb city ?>
<?lsmb IF state ?>
\hspace{-0.1cm}, <?lsmb state ?>
<?lsmb END # state ?>

<?lsmb mail_code ?>

<?lsmb country ?>

\vspace{1.8cm}

<?lsmb memo ?>

\vspace{0.8cm}

<?lsmb name ?>

\vspace{0.5cm}

<?lsmb name ?> \hfill <?lsmb datepaid ?> \hfill <?lsmb source ?>

\vspace{0.5cm}
\begin{tabularx}{\textwidth}{lXrr@{}}
\textbf{<?lsmb text('Invoice #') ?>} & \textbf{<?lsmb text('Invoice Date') ?>}
  & \textbf{<?lsmb text('Amount Due') ?>} & \textbf{<?lsmb text('Applied') ?>} \\
<?lsmb FOR inv = invoices ?>
<?lsmb inv.invnumber ?> & <?lsmb inv.invoice_date ?> \dotfill
  & <?lsmb inv.due ?> & <?lsmb inv.paid ?> \\
<?lsmb END # FOREACH inv ?>
\end{tabularx}

\vspace{1cm}

<?lsmb memo ?>

\vfill
<?lsmb message ?>
<?lsmb END # BLOCK ?>
