\documentclass{scrartcl}
\usepackage[utf8x]{inputenc}
\usepackage{tabularx}
\usepackage[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry}
\usepackage{graphicx}

\begin{document}

\pagestyle{myheadings}
\thispagestyle{empty}

\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont

\parbox[t]{12cm}{
  <%company%>

  <%address%>}
\hfill
\parbox[t]{6cm}{\hfill <%source%>}

\vspace*{0.6cm}

<%text_amount%> \dotfill <%decimal%>/100 \makebox[0.5cm]{\hfill}

\vspace{0.5cm}

\hfill <%datepaid%> \makebox[2cm]{\hfill} <%amount%>

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

\vspace{0.5cm}

<%name%>

<%address1%>

<%address2%>

<%city%>
<%if state%>
\hspace{-0.1cm}, <%state%>
<%end state%>
<%zipcode%>

<%country%>

\vspace{1.8cm}

<%memo%>

\vspace{0.8cm}

<%company%>

\vspace{0.5cm}

<%name%> \hfill <%datepaid%> \hfill <%source%>

\vspace{0.5cm}
\begin{tabularx}{\textwidth}{lXrr@{}}
\textbf{Invoice \#} & \textbf{Invoice Date}
  & \textbf{Amount Due} & \textbf{Applied} \\
<%foreach invnumber%>
<%invnumber%> & <%invdate%> \dotfill
  & <%due%> & <%paid%> \\
<%end invnumber%>
\end{tabularx}

\vspace{1cm}

<%memo%>

\vfill

\end{document}

