Sha256: 951215779cb5c25ab3e25c7dbed9d0292ac29d75e807af5c4cbdf8fb02bd2ed0

Contents?: true

Size: 1.99 KB

Versions: 2

Compression:

Stored size: 1.99 KB

Contents

\font\micr="[<%= @root_path.join('fonts', 'GnuMICR.otf').to_s %>]"
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}
\renewcommand{\headrulewidth}{0pt}
\geometry{top=1cm,left=1cm,right=1cm,bottom=0cm}
\begin{document}
\noindent

\begin{textblock}{195}(10,15)
  \begin{tabu} to \columnwidth{lXX[-1m]r}
  % <% if logo = @payment.location.get_logo %>
    \includegraphics[align=t,height=14mm,keepaspectratio]{<%=
    logo.file.path %>}
  % <% end %>
        & \small <%= break_lines @payment.location.address.to_s %>
        & \tiny <%= break_lines @payment.bank_account.address %>
        & \raisebox{-3mm}{\shadowbox{\large\bf {CHECK \# <%= @payment.check_number %> } }}\\
     \end{tabu}
\end{textblock}
%
\begin{textblock}{185}(10,30)
  \begin{tabu} to \columnwidth{Xrr}
    \rowfont[c]\bfseries
    & DATE & AMOUNT \\
    & <%=q @payment.date %>
    & <%=q Skr::String.number_with_delimiter( @payment.amount ) %> \\
    \multicolumn{3}{l}{
        <%= Skr::Number.as_words(@payment.amount.fix.to_i).titlecase %> \& $\textsuperscript{<%= sprintf('%02i',@payment.amount.frac*100) %>}/\textsubscript{100}$ U.S. Dollars
    } \\
      \tabucline[1pt on 1.5pt off 2pt]{1-1}
    \end{tabu}
  \end{textblock}
%
\begin{textblock}{200}(10,50)
  \noindent
  \begin{tabu} to \columnwidth{lX}
    \parbox{5em}{\textit{PAY \newline
        TO THE \newline
        ORDER\newline
        OF}}
    & \parbox{\linewidth}{\large{<%=q @payment.name %> } \newline
    <%= break_lines( @payment.address ) %> } \\
      \end{tabu}
    \end{textblock}
\begin{textblock}{70}(120,65)
  \noindent
  \begin{tabu} to \columnwidth{X[1,c,p]}
     \\
    \tabucline[.5pt on 1.5pt off .5pt]{1-1}
    \small Authorized Signature
    \\

  \end{tabu}
\end{textblock}
%
\begin{textblock}{10}(45,79.7)
\micr <%= sprintf('%s%07i%s', 'C', @payment.check_number, 'C') %>
\end{textblock}
%
\begin{textblock}{20}(72,79.7)
\micr A<%= @payment.bank_account.routing_number %>A C<%=@payment.bank_account.account_number %>C
\end{textblock}
%
\end{document}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.3.0 templates/print/types/payment/default.tex.erb
stockor-0.2 templates/print/types/payment/default.tex.erb