summaryrefslogtreecommitdiff
path: root/templates/demo/ar_transaction.tex
blob: 19834aaf2b80c96fe92c2e5815db0727d0d6e799 (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[top=2cm,bottom=1.5cm,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. <?lsmb company ?>
  13. <?lsmb address ?>
  14. }
  15. \parbox[b]{.2\textwidth}{
  16. \includegraphics[scale=0.3]{ledger-smb}
  17. }\hfill
  18. \begin{tabular}[b]{rr@{}}
  19. Tel: & <?lsmb tel ?>\\
  20. Fax: & <?lsmb 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. <?lsmb name ?>
  28. <?lsmb address1 ?>
  29. <?lsmb address2 ?>
  30. <?lsmb city ?>
  31. <?lsmb IF state ?>
  32. , <?lsmb state ?>
  33. <?lsmb END ?>
  34. <?lsmb zipcode ?>
  35. <?lsmb country ?>
  36. \vspace{0.3cm}
  37. <?lsmb IF contact ?>
  38. <?lsmb contact ?>
  39. <?lsmb END ?>
  40. \vspace{0.2cm}
  41. <?lsmb IF customerphone ?>
  42. Tel: <?lsmb customerphone ?>
  43. <?lsmb END ?>
  44. <?lsmb IF customerfax ?>
  45. Fax: <?lsmb customerfax ?>
  46. <?lsmb END ?>
  47. <?lsmb email ?>
  48. <?lsmb IF customertaxnumber ?>
  49. Tax Number: <?lsmb customertaxnumber ?>
  50. <?lsmb END ?>
  51. }
  52. \hfill
  53. \begin{tabular}[t]{ll}
  54. \textbf{Invoice \#} & <?lsmb invnumber ?> \\
  55. \textbf{Date} & <?lsmb invdate ?> \\
  56. \textbf{Due} & <?lsmb duedate ?> \\
  57. <?lsmb IF ponumber ?>
  58. \textbf{PO \#} & <?lsmb ponumber ?> \\
  59. <?lsmb END ?>
  60. <?lsmb IF ordnumber ?>
  61. \textbf{Order \#} & <?lsmb ordnumber ?> \\
  62. <?lsmb END ?>
  63. \textbf{Employee} & <?lsmb employee ?> \\
  64. \end{tabular}
  65. \vspace{1cm}
  66. \begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}}
  67. <?lsmb FOREACH amount ?>
  68. <?lsmb lc = loop.count - 1 ?>
  69. <?lsmb accno.${lc} ?> &
  70. <?lsmb account.${lc} ?> &
  71. <?lsmb amount.${lc} ?> &
  72. <?lsmb description.${lc} ?> &
  73. <?lsmb projectnumber.${lc} ?> \\
  74. <?lsmb END ?>
  75. \multicolumn{2}{r}{\textbf{Subtotal}} & <?lsmb subtotal ?> & \\
  76. <?lsmb FOREACH tax ?>
  77. <?lsmb lc = loop.count - 1 ?>
  78. \multicolumn{2}{r}{\textbf{<?lsmb taxdescription.${lc} ?> @ <?lsmb taxrate.${lc} ?> \%}} & <?lsmb tax.${lc} ?> & \\
  79. <?lsmb END ?>
  80. \multicolumn{2}{r}{\textbf{Total}} & <?lsmb invtotal ?> & \\
  81. \end{tabularx}
  82. \vspace{0.3cm}
  83. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100 <?lsmb currency ?>
  84. <?lsmb IF notes ?>
  85. \vspace{0.3cm}
  86. <?lsmb notes ?>
  87. <?lsmb END ?>
  88. \vspace{0.3cm}
  89. <?lsmb IF paid_1 ?>
  90. \begin{tabular}{@{}lllr@{}}
  91. \multicolumn{5}{c}{\textbf{Payments}} \\
  92. \hline
  93. \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\
  94. <?lsmb END ?>
  95. <?lsmb FOREACH payment ?>
  96. <?lsmb lc = loop.count - 1 ?>
  97. <?lsmb paymentdate.${lc} ?> & <?lsmb paymentaccount.${lc} ?> & <?lsmb paymentsource.${lc} ?> & <?lsmb payment.${lc} ?> \\
  98. <?lsmb END ?>
  99. <?lsmb IF paid_1 ?>
  100. \end{tabular}
  101. <?lsmb END ?>
  102. \vspace{0.5cm}
  103. <?lsmb FOREACH tax ?>
  104. <?lsmb lc = loop.count - 1 ?>
  105. \textbf{\scriptsize <?lsmb taxdescription.${lc} ?> Registration <?lsmb taxnumber.${lc} ?>} \\
  106. <?lsmb END ?>
  107. \end{document}