summaryrefslogtreecommitdiff
path: root/templates/Russian-invoice.tex
blob: 5507ab21ee6e6975defeba711671e0a1a78e12f7 (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 <%terms%> Days from date of Invoice. Interest on overdue amounts will acrue at the rate of 12\% per annum starting from <%duedate%> until paid in full. Items returned are subject to a 10\% restocking charge.
  29. A return authorization must be obtained from <%company%> before goods are returned. Returns must be shipped prepaid and properly insured.
  30. <%company%> will not be responsible for damages during transit.
  31. }
  32. }
  33. \vspace*{-1.3cm}
  34. \parbox{\textwidth}{%
  35. \parbox[b]{.42\textwidth}{%
  36. <%company%>
  37. <%address%>
  38. }
  39. \parbox[b]{.2\textwidth}{
  40. \includegraphics[scale=0.3]{sql-ledger}
  41. }\hfill
  42. \begin{tabular}[b]{rr@{}}
  43. Telephone & <%tel%>\\
  44. Facsimile & <%fax%>
  45. \end{tabular}
  46. \rule[1.5em]{\textwidth}{0.5pt}
  47. }
  48. <%pagebreak 65 27 37%>
  49. \end{tabularx}
  50. \rule{\textwidth}{2pt}
  51. \hfill
  52. \begin{tabularx}{7cm}{Xr@{}}
  53. \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
  54. \end{tabularx}
  55. \newpage
  56. \markboth{<%company%>\hfill <%invnumber%>}{<%company%>\hfill <%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 <%lastpage%> & & & & & & <%sumcarriedforward%> \\ [0.5em]
  62. <%end pagebreak%>
  63. \vspace*{0.5cm}
  64. \parbox[t]{1cm}{\hfill}
  65. \parbox[t]{.6\textwidth}{
  66. \textbf{To}
  67. \vspace{0.7cm}
  68. <%name%>
  69. <%address1%>
  70. <%address2%>
  71. <%city%> <%state%> <%zipcode%>
  72. <%country%>
  73. \vspace{0.3cm}
  74. <%if contact%>
  75. <%contact%>
  76. \vspace{0.2cm}
  77. <%end contact%>
  78. <%if customerphone%>
  79. Tel: <%customerphone%>
  80. <%end customerphone%>
  81. <%if customerfax%>
  82. Fax: <%customerfax%>
  83. <%end customerfax%>
  84. <%email%>
  85. }
  86. \parbox[t]{.4\textwidth}{
  87. \textbf{Ship To}
  88. \vspace{0.7cm}
  89. <%shiptoname%>
  90. <%shiptoaddress1%>
  91. <%shiptoaddress2%>
  92. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  93. <%shiptocountry%>
  94. \vspace{0.3cm}
  95. <%if shiptocontact%>
  96. <%shiptocontact%>
  97. \vspace{0.2cm}
  98. <%end shiptocontact%>
  99. <%if shiptophone%>
  100. Tel: <%shiptophone%>
  101. <%end shiptophone%>
  102. <%if shiptofax%>
  103. Fax: <%shiptofax%>
  104. <%end shiptofax%>
  105. <%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. <%invnumber%> & <%invdate%> & <%duedate%> & <%ordnumber%> & <%employee%>
  118. & <%shippingpoint%> & <%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. <%foreach number%>
  126. <%runningnumber%> & <%number%> & <%description%> & <%deliverydate%> &
  127. <%qty%> & <%unit%> & <%sellprice%> & <%discountrate%> & <%linetotal%> \\
  128. <%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 & <%subtotal%> \\
  136. <%foreach tax%>
  137. <%taxdescription%> on <%taxbase%> & <%tax%> \\
  138. <%end tax%>
  139. <%if paid%>
  140. Paid & - <%paid%> \\
  141. <%end paid%>
  142. \hline
  143. <%if total%>
  144. Balance Due & <%total%>
  145. <%end total%>
  146. \end{tabularx}
  147. \vspace{0.3cm}
  148. <%text_amount%> ***** <%decimal%>/100
  149. \hfill
  150. All prices in \textbf{<%currency%>}.
  151. \vspace{12pt}
  152. <%if notes%>
  153. <%notes%>
  154. <%end if%>
  155. }
  156. \vfill
  157. <%if paid%>
  158. \begin{tabularx}{10cm}{@{}lXlr@{}}
  159. \textbf{Payments} & & & \\
  160. \hline
  161. \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\
  162. <%end paid%>
  163. <%foreach payment%>
  164. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
  165. <%end payment%>
  166. <%if paid%>
  167. \end{tabularx}
  168. <%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}