summaryrefslogtreecommitdiff
path: root/templates/Italian-purchase_order.tex
blob: 4fe633ea8a3e2624bf441cade0d26f80a8bacf57 (plain)
  1. \documentclass[twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \setlength{\voffset}{0.5cm}
  6. \setlength{\hoffset}{-2.0cm}
  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}{18cm}
  14. \setlength{\textheight}{24.5cm}
  15. \setlength{\footskip}{1cm}
  16. \setlength{\parindent}{0pt}
  17. \renewcommand{\baselinestretch}{1}
  18. \begin{document}
  19. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  20. \newsavebox{\hdr}
  21. \sbox{\hdr}{
  22.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  23. \parbox{\textwidth}{
  24. \parbox[b]{12cm}{
  25. <%company%>
  26. <%address%>}\hfill
  27. \begin{tabular}[b]{rr@{}}
  28. Tel & <%tel%>\\
  29. Fax & <%fax%>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <%pagebreak 65 27 48%>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Subtotale} & \textbf{<%sumcarriedforward%>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<%company%>\hfill <%ordnumber%>}
  47. \vspace*{-12pt}
  48. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  49. \textbf{Numero} & \textbf{Descrizione} & \textbf{Quantita'} &
  50. \textbf{Unita'} & \textbf{Prezzo} & \textbf{Subtotale} \\
  51. & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{0.5cm}
  55. \parbox[t]{1cm}{\hfill}
  56. \parbox[t]{10.5cm}{
  57. \textbf{Ordinare a:}
  58. \vspace{0.5cm}
  59. <%name%>
  60. <%address1%>
  61. <%if address2%>
  62. <%address2%>
  63. <%end address2%>
  64. <%city%> <%state%> <%zipcode%>
  65. <%if country%>
  66. <%country%>
  67. <%end country%>
  68. \vspace{0.3cm}
  69. <%if contact%>
  70. Attn: <%contact%>
  71. \vspace{0.3cm}
  72. <%end contact%>
  73. <%if vendorphone%>
  74. Tel: <%vendorphone%>
  75. <%end vendorphone%>
  76. <%if vendorfax%>
  77. Fax: <%vendorfax%>
  78. <%end vendorfax%>
  79. <%email%>
  80. }
  81. \parbox[t]{7.5cm}{
  82. \textbf{Spedire la merce a:}
  83. \vspace{0.3cm}
  84. <%shiptoname%>
  85. <%shiptoaddress1%>
  86. <%if shiptoaddress2%>
  87. <%shiptoaddress2%>
  88. <%end shiptoaddress2%>
  89. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  90. <%if shiptocountry%>
  91. <%shiptocountry%>
  92. <%end shiptocountry%>
  93. \vspace{0.3cm}
  94. <%if shiptocontact%>
  95. Attn: <%shiptocontact%>
  96. \vspace{0.3cm}
  97. <%end shiptocontact%>
  98. <%if shiptophone%>
  99. Tel: <%shiptophone%>
  100. <%end shiptophone%>
  101. <%if shiptofax%>
  102. Fax: <%shiptofax%>
  103. <%end shiptofax%>
  104. <%shiptoemail%>
  105. }
  106. \hfill
  107. \vspace{1cm}
  108. \textbf{ORDINE DI ACQUISTO}
  109. \hfill
  110. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  111. \textbf{Data} & <%orddate%> \\
  112. <%if reqdate%>
  113. \textbf{Consegna} & <%reqdate%> \\
  114. <%end reqdate%>
  115. \textbf{Ordine numero} & <%ordnumber%>
  116. \end{tabular}
  117. \vspace{1cm}
  118. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  119. \textbf{Codice} & \textbf{Descrizione} & \textbf{Quantit\`a} &
  120. \textbf{Unit\`a} & \textbf{Prezzo} & \textbf{Totale riga} \\
  121. <%foreach number%>
  122. <%number%> & <%description%> & <%qty%> &
  123. <%unit%> & <%sellprice%> & <%linetotal%> \\
  124. <%end number%>
  125. \end{tabular*}
  126. \parbox{\textwidth}{
  127. \rule{\textwidth}{2pt}
  128. \vspace{0.2cm}
  129. \hfill
  130. \begin{tabularx}{10cm}{Xr@{}}
  131. \textbf{Totale righe} & \textbf{<%subtotal%>} \\
  132. <%foreach tax%>
  133. <%taxdescription%>: <%taxrate%>\% su <%taxbase%> & <%tax%>\\
  134. <%end tax%>
  135. \hline
  136. \textbf{Totale ordine} & \textbf{<%ordtotal%>}\\
  137. \end{tabularx}
  138. \vspace{0.3cm}
  139. \hfill
  140. Tutti i prezzi sono espressi in valuta \textbf{<%currency%>}.
  141. \vspace{12pt}
  142. <%if notes%>
  143. <%notes%>
  144. <%end if%>
  145. }
  146. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  147. %\footnotetext[1]{\tiny }
  148. \end{document}