summaryrefslogtreecommitdiff
path: root/templates/Estonian_UTF8-invoice.tex
blob: 4bb89e42d4c487b7875aaf6613dfd79839161ee0 (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry}
  5. \usepackage{graphicx}
  6. \begin{document}
  7. \pagestyle{myheadings}
  8. \thispagestyle{empty}
  9. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  10. \newsavebox{\ftr}
  11. \sbox{\ftr}{
  12.   \parbox{\textwidth}{
  13. \tiny
  14. \rule[1.5em]{\textwidth}{0.5pt}
  15. Payment due NET <?lsmb terms ?> Days from date of Invoice. Interest on overdue amounts will acrue at the rate of 12\% per annum starting from <?lsmb duedate ?> until paid in full. Items returned are subject to a 10\% restocking charge.
  16. A return authorization must be obtained from <?lsmb company ?> before goods are returned. Returns must be shipped prepaid and properly insured.
  17. <?lsmb company ?> will not be responsible for damages during transit.
  18. }
  19. }
  20. <?lsmb include letterhead.tex ?>
  21. <?lsmb pagebreak 65 27 37 ?>
  22. \end{tabularx}
  23. \rule{\textwidth}{2pt}
  24. \vspace{0.2cm}
  25. \hfill
  26. \begin{tabularx}{\textwidth}{Xr@{\hspace{1cm}}r@{}}
  27. & Subtotal & <?lsmb sumcarriedforward ?> \\
  28. \end{tabularx}
  29. \newpage
  30. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{<?lsmb company ?>\hfill <?lsmb invnumber ?>}
  31. \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  32. \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} &
  33. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em]
  34. & carried forward from page <?lsmb lastpage ?> & & & & & & & <?lsmb sumcarriedforward ?> \\ [0.5em]
  35. <?lsmb end pagebreak ?>
  36. \vspace*{0.5cm}
  37. \parbox[t]{.5\textwidth}{
  38. \textbf{To}
  39. \vspace{0.3cm}
  40. <?lsmb name ?>
  41. <?lsmb address1 ?>
  42. <?lsmb address2 ?>
  43. <?lsmb city ?>
  44. <?lsmb if state ?>
  45. \hspace{-0.1cm}, <?lsmb state ?>
  46. <?lsmb end state ?>
  47. <?lsmb zipcode ?>
  48. <?lsmb country ?>
  49. \vspace{0.3cm}
  50. <?lsmb if contact ?>
  51. <?lsmb contact ?>
  52. \vspace{0.2cm}
  53. <?lsmb end contact ?>
  54. <?lsmb if customerphone ?>
  55. Tel: <?lsmb customerphone ?>
  56. <?lsmb end customerphone ?>
  57. <?lsmb if customerfax ?>
  58. Fax: <?lsmb customerfax ?>
  59. <?lsmb end customerfax ?>
  60. <?lsmb email ?>
  61. }
  62. \parbox[t]{.5\textwidth}{
  63. \textbf{Ship To}
  64. \vspace{0.3cm}
  65. <?lsmb shiptoname ?>
  66. <?lsmb shiptoaddress1 ?>
  67. <?lsmb shiptoaddress2 ?>
  68. <?lsmb shiptocity ?>
  69. <?lsmb if shiptostate ?>
  70. \hspace{-0.1cm}, <?lsmb shiptostate ?>
  71. <?lsmb end shiptostate ?>
  72. <?lsmb shiptozipcode ?>
  73. <?lsmb shiptocountry ?>
  74. \vspace{0.3cm}
  75. <?lsmb if shiptocontact ?>
  76. <?lsmb shiptocontact ?>
  77. \vspace{0.2cm}
  78. <?lsmb end shiptocontact ?>
  79. <?lsmb if shiptophone ?>
  80. Tel: <?lsmb shiptophone ?>
  81. <?lsmb end shiptophone ?>
  82. <?lsmb if shiptofax ?>
  83. Fax: <?lsmb shiptofax ?>
  84. <?lsmb end shiptofax ?>
  85. <?lsmb shiptoemail ?>
  86. }
  87. \hfill
  88. \vspace{1cm}
  89. \textbf{A R V E}
  90. \hfill
  91. \vspace{1cm}
  92. \begin{tabularx}{\textwidth}{*{7}{|X}|} \hline
  93. \textbf{Arve NR.} & \textbf{Kuupäev} & \textbf{Maksetähtaeg} & \textbf{Tellimus NR.}
  94. & \textbf{Müüja} & \textbf{Tarneaadress} & \textbf{Tarneviis} \\ [0.5em]
  95. \hline
  96. <?lsmb invnumber ?> & <?lsmb invdate ?> & <?lsmb duedate ?> & <?lsmb ordnumber ?> & <?lsmb employee ?>
  97. & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  98. \hline
  99. \end{tabularx}
  100. \vspace{1cm}
  101. \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  102. \textbf{AR.} & \textbf{Number} & \textbf{Kirjeldus} & & \textbf{Kogus} &
  103. \textbf{Ühik} & \textbf{Hind} & \textbf{AlH \%} & \textbf{Summa} \\ [0.5em]
  104. <?lsmb foreach number ?>
  105. <?lsmb runningnumber ?> & <?lsmb number ?> & <?lsmb description ?> & <?lsmb deliverydate ?> &
  106. <?lsmb qty ?> & <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb discountrate ?> & <?lsmb linetotal ?> \\
  107. <?lsmb end number ?>
  108. \end{tabularx}
  109. \parbox{\textwidth}{
  110. \rule{\textwidth}{2pt}
  111. \vspace{0.2cm}
  112. \hfill
  113. \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  114. & Subtotal & <?lsmb subtotal ?> \\
  115. <?lsmb foreach tax ?>
  116. & <?lsmb taxdescription ?> on <?lsmb taxbase ?> & <?lsmb tax ?> \\
  117. <?lsmb end tax ?>
  118. <?lsmb if paid ?>
  119. & Paid & - <?lsmb paid ?> \\
  120. <?lsmb end paid ?>
  121. \hline
  122. <?lsmb if total ?>
  123. & Balance Due & <?lsmb total ?>
  124. <?lsmb end total ?>
  125. \end{tabularx}
  126. \vspace{0.3cm}
  127. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100
  128. \hfill
  129. All prices in \textbf{<?lsmb currency ?>}.
  130. \vspace{12pt}
  131. <?lsmb notes ?>
  132. }
  133. \vfill
  134. <?lsmb if paid_1 ?>
  135. \begin{tabularx}{10cm}{@{}lXlr@{}}
  136. \textbf{Maksed} & & & \\
  137. \hline
  138. \textbf{Kuupäev} & & \textbf{Alus} & \textbf{Summa} \\
  139. <?lsmb end paid_1 ?>
  140. <?lsmb foreach payment ?>
  141. <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\
  142. <?lsmb end payment ?>
  143. <?lsmb if paid_1 ?>
  144. \end{tabularx}
  145. <?lsmb end paid_1 ?>
  146. \vspace{1cm}
  147. \centerline{\textbf{Thank You for your valued business!}}
  148. \rule{\textwidth}{0.5pt}
  149. \usebox{\ftr}
  150. \end{document}