summaryrefslogtreecommitdiff
path: root/templates/krings/ap_transaction.tex
blob: 8bfd9f79c1f0dedfb8980de3996db96ca5251624 (plain)
  1. \documentclass[10pt,letterpaper,oneside,onecolumn]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \usepackage{graphicx}
  6. \setlength{\voffset}{0.5cm}
  7. \setlength{\hoffset}{-1.9cm}
  8. \setlength{\topmargin}{0cm}
  9. \setlength{\headheight}{0.5cm}
  10. \setlength{\headsep}{1cm}
  11. \setlength{\topskip}{0pt}
  12. \setlength{\oddsidemargin}{1.0cm}
  13. \setlength{\evensidemargin}{1.0cm}
  14. \setlength{\textwidth}{19.2cm}
  15. \setlength{\textheight}{24.7cm}
  16. \setlength{\footskip}{1cm}
  17. \setlength{\parindent}{0pt}
  18. \renewcommand{\baselinestretch}{1}
  19. \begin{document}
  20. \pagestyle{myheadings}
  21. \thispagestyle{empty}
  22. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  23. \vspace*{-1.3cm}
  24. \parbox{\textwidth}{%
  25.   \parbox[b]{.42\textwidth}{%
  26. <%company%>
  27. <%address%>
  28. }
  29. \parbox[b]{.2\textwidth}{
  30. \includegraphics[scale=0.3]{sql-ledger}
  31. }\hfill
  32. \begin{tabular}[b]{rr@{}}
  33. Telephone & <%tel%>\\
  34. Facsimile & <%fax%>
  35. \end{tabular}
  36. \rule[1.5em]{\textwidth}{0.5pt}
  37. }
  38. \centerline{\textbf{A P} \hspace{0.3cm} \textbf{T R A N S A C T I O N}}
  39. \vspace*{0.5cm}
  40. \parbox[t]{.5\textwidth}{
  41. <%name%>
  42. <%address1%>
  43. <%address2%>
  44. <%city%> <%state%> <%zipcode%>
  45. <%country%>
  46. \vspace{0.3cm}
  47. <%if contact%>
  48. <%contact%>
  49. <%end contact%>
  50. \vspace{0.2cm}
  51. <%if customerphone%>
  52. Tel: <%customerphone%>
  53. <%end customerphone%>
  54. <%if customerfax%>
  55. Fax: <%customerfax%>
  56. <%end customerfax%>
  57. <%email%>
  58. }
  59. \hfill
  60. \begin{tabular}[t]{ll}
  61. \textbf{Invoice \#} & <%invnumber%> \\
  62. \textbf{Date} & <%invdate%> \\
  63. \textbf{Due} & <%duedate%> \\
  64. \textbf{Order \#} & <%ordnumber%> \\
  65. \textbf{Employee} & <%employee%> \\
  66. \end{tabular}
  67. \vspace{1cm}
  68. \begin{tabularx}{.5\textwidth}[t]{@{}llrl@{}}
  69. <%foreach amount%>
  70. <%accno%> & <%account%> & <%amount%> & <%projectnumber%> \\
  71. <%end amount%>
  72. \multicolumn{2}{r}{\textbf{Subtotal}} & <%subtotal%> & \\
  73. <%foreach tax%>
  74. \multicolumn{2}{r}{\textbf{<%taxdescription%> @ <%taxrate%> \%}} & <%tax%> & \\
  75. <%end tax%>
  76. \multicolumn{2}{r}{\textbf{Total}} & <%invtotal%> & \\
  77. \end{tabularx}
  78. <%notes%>
  79. \vspace{0.3cm}
  80. <%text_amount%> ***** <%decimal%>/100 <%currency%>
  81. \vspace{0.3cm}
  82. <%if paid%>
  83. \begin{tabular}{@{}llllr@{}}
  84. \multicolumn{5}{c}{\textbf{Payments}} \\
  85. \hline
  86. \textbf{Date} & & \textbf{Source} & \textbf{Memo} & \textbf{Amount} \\
  87. <%end paid%>
  88. <%foreach payment%>
  89. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%paymentmemo%> & <%payment%> \\
  90. <%end payment%>
  91. <%if paid%>
  92. \end{tabular}
  93. <%end paid%>
  94. \end{document}