summaryrefslogtreecommitdiff
path: root/templates/Spanish_Letter-purchase_order.tex
blob: 0fcd33f812cf787b33b10e36a4bcac0c238476d2 (plain)
  1. \documentclass[letterpaper,oneside]{article}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. %\usepackage{marvosym} % Euro \EUR
  6. \usepackage{fancyhdr}
  7. \setlength{\topmargin}{0cm}
  8. \setlength{\topskip}{0cm}
  9. \setlength{\headheight}{0cm}
  10. \setlength{\headsep}{0.5cm}
  11. \setlength{\textheight}{24.2cm}
  12. \setlength{\textwidth}{19cm}
  13. \setlength{\oddsidemargin}{-1.4cm}
  14. \setlength{\evensidemargin}{-1.4cm}
  15. \setlength{\footskip}{1cm}
  16. \setlength{\parindent}{0pt}
  17. \renewcommand{\baselinestretch}{1}
  18. \begin{document}
  19. \newlength{\descrwidth}\setlength{\descrwidth}{13.0cm}
  20. \newsavebox{\hdr}
  21. \fontfamily{cmss}\fontshape{n}\selectfont
  22. \sbox{\hdr}{
  23. \begin{minipage}[t]{0.6\linewidth}
  24. \vspace{2.2cm}
  25. \begin{tabular}[t]{p{1.7cm}p{2.4cm}p{1.7cm}}\\
  26. \centering{Número& \centering{Fecha} & C. Cliente\\
  27. \centering{<%ordnumber%>} & \centering{<%orddate%>} & \centering{<%vendor_id%>}
  28. \end{tabular}
  29. \end{minipage}
  30. \begin{minipage}[t]{0.4\linewidth}
  31. \textbf{O R D E N \quad D E \quad C O M P R A}
  32. \vspace{1cm}
  33. <%name%>
  34. <%address1%>
  35. <%if address2%>
  36. <%address2%>
  37. <%end address2%>
  38. <%city%> <%state%> <%zipcode%>
  39. <%if country%>
  40. <%country%>
  41. <%end country%>
  42. \end{minipage}
  43. }
  44. \pagestyle{fancy}
  45. \renewcommand{\headrulewidth}{0cm}
  46. \renewcommand{\footrulewidth}{0cm}
  47. \cfoot{\thepage}
  48. %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
  49. %\thispagestyle{empty} %use this with letterhead paper
  50. <%pagebreak 65 27 37%>
  51. \end{tabular*}
  52. \newpage
  53. \usebox{\hdr}
  54. %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
  55. \vspace{0.5cm}
  56. \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
  57. \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
  58. <%end pagebreak%>
  59. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  60. \usebox{\hdr}
  61. \vspace{0.5cm}
  62. \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
  63. \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
  64. <%foreach number%>
  65. <%qty%> & <%description%> & <%sellprice%> & <%linetotal%> \\
  66. <%end number%>
  67. \end{tabular*}
  68. \parbox{\textwidth}{
  69. \vspace{12pt}
  70. <%if notes%>
  71. <%notes%>
  72. <%end if%>
  73. }
  74. \vfill
  75. \begin{flushright}
  76. \begin{tabularx}{10cm}{Xr@{}}
  77. \textbf{Base imponible} & \textbf{<%subtotal%>} \\
  78. <%foreach tax%>
  79. IVA (<%taxrate%>\%) sobre <%taxbase%> & <%tax%> \\
  80. <%end tax%>
  81. \hline
  82. \textbf{Total} & \textbf{<%ordtotal%>} \\
  83. \end{tabularx}
  84. \end{flushright}
  85. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  86. \end{document}