summaryrefslogtreecommitdiff
path: root/templates/Russian-purchase_order.tex
blob: fa4e1fe591df08e3f514d8038989fbac71da01d0 (plain)
  1. \documentclass[twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage{graphicx}
  5. \setlength{\voffset}{0.5cm}
  6. \setlength{\hoffset}{-1.9cm}
  7. \setlength{\topmargin}{0cm}
  8. \setlength{\headheight}{0.5cm}
  9. \setlength{\headsep}{1cm}
  10. \setlength{\topskip}{0pt}
  11. \setlength{\oddsidemargin}{1.0cm}
  12. \setlength{\evensidemargin}{1.0cm}
  13. \setlength{\textwidth}{19.2cm}
  14. \setlength{\textheight}{24.7cm}
  15. \setlength{\footskip}{1cm}
  16. \setlength{\parindent}{0pt}
  17. \renewcommand{\baselinestretch}{1}
  18. \begin{document}
  19. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  20. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  21. \pagestyle{myheadings}
  22. \thispagestyle{empty}
  23. \vspace*{-1.3cm}
  24. \parbox{\textwidth}{
  25.   \parbox[b]{.42\textwidth}{
  26. <%company%>
  27. <%address%>
  28. }
  29. \parbox[b]{.2\textwidth}{
  30. \includegraphics[scale=0.3]{sql-ledger}
  31. }\hfill
  32. \begin{tabular}[b]{rr@{}}
  33. Telephone & <%tel%>\\
  34. Facsimile & <%fax%>
  35. \end{tabular}
  36. \rule[1.5ex]{\textwidth}{0.5pt}
  37. }
  38. <%pagebreak 65 27 48%>
  39. \end{tabularx}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. Subtotal & <%sumcarriedforward%> \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<%company%>\hfill <%ordnumber%>}
  47. \vspace*{-12pt}
  48. \begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
  49. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  50. \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  51. & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \vspace*{0.5cm}
  54. \parbox[t]{1cm}{\hfill}
  55. \parbox[t]{.45\textwidth}{
  56. \textbf{To}
  57. \vspace{0.5cm}
  58. <%name%>
  59. <%address1%>
  60. <%address2%>
  61. <%city%> <%state%> <%zipcode%>
  62. <%country%>
  63. \vspace{0.3cm}
  64. <%if contact%>
  65. Attn: <%contact%>
  66. \vspace{0.3cm}
  67. <%end contact%>
  68. <%if vendorphone%>
  69. Tel: <%vendorphone%>
  70. <%end vendorphone%>
  71. <%if vendorfax%>
  72. Fax: <%vendorfax%>
  73. <%end vendorfax%>
  74. <%email%>
  75. }
  76. \parbox[t]{.45\textwidth}{
  77. \textbf{Ship To}
  78. \vspace{0.5cm}
  79. <%shiptoname%>
  80. <%shiptoaddress1%>
  81. <%shiptoaddress2%>
  82. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  83. <%shiptocountry%>
  84. \vspace{0.3cm}
  85. <%if shiptocontact%>
  86. Attn: <%shiptocontact%>
  87. \vspace{0.3cm}
  88. <%end shiptocontact%>
  89. <%if shiptophone%>
  90. Tel: <%shiptophone%>
  91. <%end shiptophone%>
  92. <%if shiptofax%>
  93. Fax: <%shiptofax%>
  94. <%end shiptofax%>
  95. <%shiptoemail%>
  96. }
  97. \hfill
  98. \vspace{1cm}
  99. \textbf{P U R C H A S E} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
  100. \hfill
  101. \vspace{1cm}
  102. \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
  103. \textbf{Order \#} & \textbf{Date} & \textbf{Required by} & \textbf{Contact} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5ex]
  104. \hline
  105. <%ordnumber%> & <%orddate%> & <%reqdate%> & <%employee%> & <%shippingpoint%> & <%shipvia%> \\
  106. \hline
  107. \end{tabularx}
  108. \vspace{1cm}
  109. \begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
  110. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  111. \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  112. <%foreach number%>
  113. <%number%> & <%description%> & <%qty%> &
  114. <%unit%> & <%sellprice%> & <%linetotal%> \\
  115. <%end number%>
  116. \end{tabularx}
  117. \parbox{\textwidth}{
  118. \rule{\textwidth}{2pt}
  119. \vspace{0.2cm}
  120. \hfill
  121. \begin{tabularx}{7cm}{Xr@{}}
  122. Subtotal & <%subtotal%> \\
  123. <%foreach tax%>
  124. <%taxdescription%> on <%taxbase%> & <%tax%>\\
  125. <%end tax%>
  126. \hline
  127. Total & <%ordtotal%>\\
  128. \end{tabularx}
  129. \vspace{0.3cm}
  130. \hfill
  131. All prices in \textbf{<%currency%>}.
  132. \vspace{12pt}
  133. <%if notes%>
  134. <%notes%>
  135. <%end if%>
  136. }
  137. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  138. %\footnotetext[1]{\tiny }
  139. \end{document}