summaryrefslogtreecommitdiff
path: root/templates/demo/ar_transaction.tex
blob: 1c3c44f393cab2fc9c35f42e21b0af3ffa28086b (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry}
  5. \usepackage{graphicx}
  6. \setlength{\parindent}{0pt}
  7. \begin{document}
  8. \pagestyle{myheadings}
  9. \thispagestyle{empty}
  10. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  11. <%include letterhead.tex%>
  12. \centerline{\textbf{A R} \hspace{0.3cm} \textbf{T R A N S A C T I O N}}
  13. \vspace*{0.5cm}
  14. \parbox[t]{.5\textwidth}{
  15. <%name%>
  16. <%address1%>
  17. <%address2%>
  18. <%city%>
  19. <%if state%>
  20. \hspace{-0.1cm}, <%state%>
  21. <%end state%>
  22. <%zipcode%>
  23. <%country%>
  24. \vspace{0.3cm}
  25. <%if contact%>
  26. <%contact%>
  27. \vspace{0.2cm}
  28. <%end contact%>
  29. <%if customerphone%>
  30. Tel: <%customerphone%>
  31. <%end customerphone%>
  32. <%if customerfax%>
  33. Fax: <%customerfax%>
  34. <%end customerfax%>
  35. <%email%>
  36. <%if customertaxnumber%>
  37. Tax Number: <%customertaxnumber%>
  38. <%end customertaxnumber%>
  39. }
  40. \hfill
  41. \begin{tabular}[t]{ll}
  42. \textbf{Invoice \#} & <%invnumber%> \\
  43. \textbf{Date} & <%invdate%> \\
  44. \textbf{Due} & <%duedate%> \\
  45. <%if ponumber%>
  46. \textbf{PO \#} & <%ponumber%> \\
  47. <%end ponumber%>
  48. <%if ordnumber%>
  49. \textbf{Order \#} & <%ordnumber%> \\
  50. <%end ordnumber%>
  51. \textbf{Employee} & <%employee%> \\
  52. \end{tabular}
  53. \vspace{1cm}
  54. \begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}}
  55. <%foreach amount%>
  56. <%accno%> & <%account%> & <%amount%> & <%description%> & <%projectnumber%> \\
  57. <%end amount%>
  58. \multicolumn{2}{r}{\textbf{Subtotal}} & <%subtotal%> & \\
  59. <%foreach tax%>
  60. \multicolumn{2}{r}{\textbf{<%taxdescription%> @ <%taxrate%> \%}} & <%tax%> & \\
  61. <%end tax%>
  62. \multicolumn{2}{r}{\textbf{Total}} & <%invtotal%> & \\
  63. \end{tabularx}
  64. \vspace{0.3cm}
  65. <%text_amount%> ***** <%decimal%>/100 <%currency%>
  66. <%if notes%>
  67. \vspace{0.3cm}
  68. <%notes%>
  69. <%end notes%>
  70. \vspace{0.3cm}
  71. <%if paid_1%>
  72. \begin{tabular}{@{}lllr@{}}
  73. \multicolumn{5}{c}{\textbf{Payments}} \\
  74. \hline
  75. \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\
  76. <%end paid_1%>
  77. <%foreach payment%>
  78. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
  79. <%end payment%>
  80. <%if paid_1%>
  81. \end{tabular}
  82. <%end paid_1%>
  83. \vspace{0.5cm}
  84. <%foreach tax%>
  85. \textbf{\scriptsize <%taxdescription%> Registration <%taxnumber%>} \\
  86. <%end tax%>
  87. \end{document}