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