summaryrefslogtreecommitdiff
path: root/templates/Spanish_Letter-packing_list.tex
blob: 59f76e8c004c9c84661ce847a30124fc246c35db (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{<?lsmb ordnumber ?>} & \centering{<?lsmb invnumber ?>} & \centering{<?lsmb invdate ?>} & \centering{<?lsmb 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. <?lsmb name ?>
  34. <?lsmb address1 ?>
  35. <?lsmb address2 ?>
  36. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  37. <?lsmb 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. <?lsmb 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. <?lsmb 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. <?lsmb foreach number ?>
  61. <?lsmb qty ?> & <?lsmb description ?> & <?lsmb sellprice ?> & <?lsmb linetotal ?> \\
  62. <?lsmb end number ?>
  63. \end{tabular*}
  64. \parbox{\textwidth}{
  65. \vspace{12pt}
  66. <?lsmb if notes ?>
  67. <?lsmb notes ?>
  68. <?lsmb end if ?>
  69. }
  70. \vfill
  71. \begin{flushright}
  72. \begin{tabularx}{10cm}{Xr@{}}
  73. \textbf{Base imponible} & \textbf{<?lsmb subtotal ?>} \\
  74. <?lsmb foreach tax ?>
  75. IVA (<?lsmb taxrate ?>\%) sobre <?lsmb taxbase ?> & <?lsmb tax ?> \\
  76. <?lsmb end tax ?>
  77. \hline
  78. \textbf{Total} & \textbf{<?lsmb invtotal ?>} \\
  79. \end{tabularx}
  80. \end{flushright}
  81. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  82. \end{document}