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