summaryrefslogtreecommitdiff
path: root/templates/Russian-invoice.tex
blob: 7e5119ddafd38144f353e8f59d4c74db3fda084e (plain)
  1. \documentclass[10pt,letterpaper,oneside,onecolumn]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \usepackage{graphicx}
  6. \setlength{\voffset}{0.5cm}
  7. \setlength{\hoffset}{-1.9cm}
  8. \setlength{\topmargin}{0cm}
  9. \setlength{\headheight}{0.5cm}
  10. \setlength{\headsep}{1cm}
  11. \setlength{\topskip}{0pt}
  12. \setlength{\oddsidemargin}{1.0cm}
  13. \setlength{\evensidemargin}{1.0cm}
  14. \setlength{\textwidth}{19.2cm}
  15. \setlength{\textheight}{24.7cm}
  16. \setlength{\footskip}{1cm}
  17. \setlength{\parindent}{0pt}
  18. \renewcommand{\baselinestretch}{1}
  19. \begin{document}
  20. \pagestyle{myheadings}
  21. \thispagestyle{empty}
  22. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  23. \newsavebox{\ftr}
  24. \sbox{\ftr}{
  25.   \parbox{\textwidth}{
  26. \tiny
  27. \rule[1.5em]{\textwidth}{0.5pt}
  28. 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.
  29. A return authorization must be obtained from <?lsmb company ?> before goods are returned. Returns must be shipped prepaid and properly insured.
  30. <?lsmb company ?> will not be responsible for damages during transit.
  31. }
  32. }
  33. \vspace*{-1.3cm}
  34. \parbox{\textwidth}{%
  35. \parbox[b]{.42\textwidth}{%
  36. <?lsmb company ?>
  37. <?lsmb address ?>
  38. }
  39. \parbox[b]{.2\textwidth}{
  40. \includegraphics[scale=0.3]{ledger-smb}
  41. }\hfill
  42. \begin{tabular}[b]{rr@{}}
  43. Telephone & <?lsmb tel ?>\\
  44. Facsimile & <?lsmb fax ?>
  45. \end{tabular}
  46. \rule[1.5em]{\textwidth}{0.5pt}
  47. }
  48. <?lsmb pagebreak 65 27 37 ?>
  49. \end{tabularx}
  50. \rule{\textwidth}{2pt}
  51. \hfill
  52. \begin{tabularx}{7cm}{Xr@{}}
  53. \textbf{Subtotal} & \textbf{<?lsmb sumcarriedforward ?>} \\
  54. \end{tabularx}
  55. \newpage
  56. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{<?lsmb company ?>\hfill <?lsmb invnumber ?>}
  57. \vspace*{-12pt}
  58. \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  59. \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} &
  60. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em]
  61. & carried forward from page <?lsmb lastpage ?> & & & & & & <?lsmb sumcarriedforward ?> \\ [0.5em]
  62. <?lsmb end pagebreak ?>
  63. \vspace*{0.5cm}
  64. \parbox[t]{1cm}{\hfill}
  65. \parbox[t]{.6\textwidth}{
  66. \textbf{To}
  67. \vspace{0.7cm}
  68. <?lsmb name ?>
  69. <?lsmb address1 ?>
  70. <?lsmb address2 ?>
  71. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  72. <?lsmb country ?>
  73. \vspace{0.3cm}
  74. <?lsmb if contact ?>
  75. <?lsmb contact ?>
  76. \vspace{0.2cm}
  77. <?lsmb end contact ?>
  78. <?lsmb if customerphone ?>
  79. Tel: <?lsmb customerphone ?>
  80. <?lsmb end customerphone ?>
  81. <?lsmb if customerfax ?>
  82. Fax: <?lsmb customerfax ?>
  83. <?lsmb end customerfax ?>
  84. <?lsmb email ?>
  85. }
  86. \parbox[t]{.4\textwidth}{
  87. \textbf{Ship To}
  88. \vspace{0.7cm}
  89. <?lsmb shiptoname ?>
  90. <?lsmb shiptoaddress1 ?>
  91. <?lsmb shiptoaddress2 ?>
  92. <?lsmb shiptocity ?> <?lsmb shiptostate ?> <?lsmb shiptozipcode ?>
  93. <?lsmb shiptocountry ?>
  94. \vspace{0.3cm}
  95. <?lsmb if shiptocontact ?>
  96. <?lsmb shiptocontact ?>
  97. \vspace{0.2cm}
  98. <?lsmb end shiptocontact ?>
  99. <?lsmb if shiptophone ?>
  100. Tel: <?lsmb shiptophone ?>
  101. <?lsmb end shiptophone ?>
  102. <?lsmb if shiptofax ?>
  103. Fax: <?lsmb shiptofax ?>
  104. <?lsmb end shiptofax ?>
  105. <?lsmb shiptoemail ?>
  106. }
  107. \hfill
  108. \vspace{1cm}
  109. \textbf{I N V O I C E}
  110. \hfill
  111. \vspace{1cm}
  112. \begin{tabularx}{\textwidth}{*{7}{|X}|} \hline
  113. \textbf{Invoice \#} & \textbf{Date} & \textbf{Due} & \textbf{Order \#}
  114. & \textbf{Salesperson} & \textbf{Shipping Point} &
  115. \textbf{Ship via} \\ [0.5em]
  116. \hline
  117. <?lsmb invnumber ?> & <?lsmb invdate ?> & <?lsmb duedate ?> & <?lsmb ordnumber ?> & <?lsmb employee ?>
  118. & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  119. \hline
  120. \end{tabularx}
  121. \vspace{1cm}
  122. \begin{tabularx}{\textwidth}{@{}rlXlrlrrr@{}}
  123. \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} &
  124. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em]
  125. <?lsmb foreach number ?>
  126. <?lsmb runningnumber ?> & <?lsmb number ?> & <?lsmb description ?> & <?lsmb deliverydate ?> &
  127. <?lsmb qty ?> & <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb discountrate ?> & <?lsmb linetotal ?> \\
  128. <?lsmb end number ?>
  129. \end{tabularx}
  130. \parbox{\textwidth}{
  131. \rule{\textwidth}{2pt}
  132. \vspace{0.2cm}
  133. \hfill
  134. \begin{tabularx}{7cm}{Xr@{}}
  135. Subtotal & <?lsmb subtotal ?> \\
  136. <?lsmb foreach tax ?>
  137. <?lsmb taxdescription ?> on <?lsmb taxbase ?> & <?lsmb tax ?> \\
  138. <?lsmb end tax ?>
  139. <?lsmb if paid ?>
  140. Paid & - <?lsmb paid ?> \\
  141. <?lsmb end paid ?>
  142. \hline
  143. <?lsmb if total ?>
  144. Balance Due & <?lsmb total ?>
  145. <?lsmb end total ?>
  146. \end{tabularx}
  147. \vspace{0.3cm}
  148. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100
  149. \hfill
  150. All prices in \textbf{<?lsmb currency ?>}.
  151. \vspace{12pt}
  152. <?lsmb if notes ?>
  153. <?lsmb notes ?>
  154. <?lsmb end if ?>
  155. }
  156. \vfill
  157. <?lsmb if paid ?>
  158. \begin{tabularx}{10cm}{@{}lXlr@{}}
  159. \textbf{Payments} & & & \\
  160. \hline
  161. \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\
  162. <?lsmb end paid ?>
  163. <?lsmb foreach payment ?>
  164. <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\
  165. <?lsmb end payment ?>
  166. <?lsmb if paid ?>
  167. \end{tabularx}
  168. <?lsmb end paid ?>
  169. \vspace{1cm}
  170. \centerline{\textbf{Thank You for your valued business!}}
  171. \rule{\textwidth}{0.5pt}
  172. \usebox{\ftr}
  173. \end{document}