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