summaryrefslogtreecommitdiff
path: root/templates/Service-ap_transaction.tex
blob: 066ea1e82c54079b0f934345cae8250c22d11cd2 (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 P} \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%> <%zipcode%>
  34. <%country%>
  35. \vspace{0.3cm}
  36. <%if contact%>
  37. <%contact%>
  38. <%end contact%>
  39. \vspace{0.2cm}
  40. <%if vendorphone%>
  41. Tel: <%vendorphone%>
  42. <%end vendorphone%>
  43. <%if vendorfax%>
  44. Fax: <%vendorfax%>
  45. <%end vendorfax%>
  46. <%email%>
  47. <%if vendortaxnumber%>
  48. Tax Number: <%vendortaxnumber%>
  49. <%end vendortaxnumber%>
  50. }
  51. \hfill
  52. \begin{tabular}[t]{ll}
  53. \textbf{Invoice \#} & <%invnumber%> \\
  54. \textbf{Date} & <%invdate%> \\
  55. \textbf{Due} & <%duedate%> \\
  56. <%if ponumber%>
  57. \textbf{PO \#} & <%ponumber%> \\
  58. <%end ponumber%>
  59. <%if ordnumber%>
  60. \textbf{Order \#} & <%ordnumber%> \\
  61. <%end ordnumber%>
  62. \textbf{Employee} & <%employee%> \\
  63. \end{tabular}
  64. \vspace{1cm}
  65. \begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}}
  66. <%foreach amount%>
  67. <%accno%> & <%account%> & <%amount%> & <%description%> & <%projectnumber%> \\
  68. <%end amount%>
  69. \multicolumn{2}{r}{\textbf{Subtotal}} & <%subtotal%> & \\
  70. <%foreach tax%>
  71. \multicolumn{2}{r}{\textbf{<%taxdescription%> @ <%taxrate%> \%}} & <%tax%> & \\
  72. <%end tax%>
  73. \multicolumn{2}{r}{\textbf{Total}} & <%invtotal%> & \\
  74. \end{tabularx}
  75. \vspace{0.3cm}
  76. <%text_amount%> ***** <%decimal%>/100 <%currency%>
  77. <%if notes%>
  78. \vspace{0.3cm}
  79. <%notes%>
  80. <%end notes%>
  81. \vspace{0.3cm}
  82. <%if paid_1%>
  83. \begin{tabular}{@{}llllr@{}}
  84. \multicolumn{5}{c}{\textbf{Payments}} \\
  85. \hline
  86. \textbf{Date} & & \textbf{Source} & \textbf{Memo} & \textbf{Amount} \\
  87. <%end paid_1%>
  88. <%foreach payment%>
  89. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%paymentmemo%> & <%payment%> \\
  90. <%end payment%>
  91. <%if paid_1%>
  92. \end{tabular}
  93. <%end paid_1%>
  94. \end{document}