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