summaryrefslogtreecommitdiff
path: root/templates/Spanish_Letter-packing_list.tex
blob: ed7eea63dd9db2c91c5e0102475c9c6754fb64b8 (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{1.7cm}p{2.4cm}p{1.7cm}}\\
  26. \centering{Número& \centering{Número} & \centering{Fecha} & C. Cliente\\
  27. \centering{<%ordnumber%>} & \centering{<%invnumber%>} & \centering{<%invdate%>} & \centering{<%customer_id%>}
  28. \end{tabular}
  29. \end{minipage}
  30. \begin{minipage}[t]{0.4\linewidth}
  31. \textbf{A L B A R Á N}
  32. \vspace{1cm}
  33. <%name%>
  34. <%address1%>
  35. <%address2%>
  36. <%city%> <%state%> <%zipcode%>
  37. <%country%>
  38. \end{minipage}
  39. }
  40. \pagestyle{fancy}
  41. \renewcommand{\headrulewidth}{0cm}
  42. \renewcommand{\footrulewidth}{0cm}
  43. \cfoot{\thepage}
  44. %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
  45. %\thispagestyle{empty} %use this with letterhead paper
  46. <%pagebreak 65 27 37%>
  47. \end{tabular*}
  48. \newpage
  49. \usebox{\hdr}
  50. \vspace{0.5cm}
  51. %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
  52. \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
  53. \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
  54. <%end pagebreak%>
  55. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  56. \usebox{\hdr}
  57. \vspace{0.5cm}
  58. \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
  59. \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
  60. <%foreach number%>
  61. <%qty%> & <%description%> & <%sellprice%> & <%linetotal%> \\
  62. <%end number%>
  63. \end{tabular*}
  64. \parbox{\textwidth}{
  65. \vspace{12pt}
  66. <%if notes%>
  67. <%notes%>
  68. <%end if%>
  69. }
  70. \vfill
  71. \begin{flushright}
  72. \begin{tabularx}{10cm}{Xr@{}}
  73. \textbf{Base imponible} & \textbf{<%subtotal%>} \\
  74. <%foreach tax%>
  75. IVA (<%taxrate%>\%) sobre <%taxbase%> & <%tax%> \\
  76. <%end tax%>
  77. \hline
  78. \textbf{Total} & \textbf{<%invtotal%>} \\
  79. \end{tabularx}
  80. \end{flushright}
  81. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  82. \end{document}