summaryrefslogtreecommitdiff
path: root/templates/Spanish_A4-purchase_order.tex
blob: 757442632ddf79f32b0e46e8a9923b8ea251268b (plain)
  1. \documentclass[a4paper,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{<?lsmb ordnumber ?>} & \centering{<?lsmb orddate ?>} & \centering{<?lsmb vendor_id ?>}
  28. \end{tabular}
  29. \end{minipage}
  30. \begin{minipage}[t]{0.4\linewidth}
  31. \textbf{P E D I D O}
  32. \vspace{1cm}
  33. <?lsmb name ?>
  34. <?lsmb address1 ?>
  35. <?lsmb if address2 ?>
  36. <?lsmb address2 ?>
  37. <?lsmb end address2 ?>
  38. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  39. <?lsmb if country ?>
  40. <?lsmb country ?>
  41. <?lsmb 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. <?lsmb 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. <?lsmb 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. <?lsmb foreach number ?>
  65. <?lsmb qty ?> & <?lsmb description ?> & <?lsmb sellprice ?> & <?lsmb linetotal ?> \\
  66. <?lsmb end number ?>
  67. \end{tabular*}
  68. \parbox{\textwidth}{
  69. \vspace{12pt}
  70. <?lsmb if notes ?>
  71. <?lsmb notes ?>
  72. <?lsmb end if ?>
  73. }
  74. \vfill
  75. \begin{flushright}
  76. \begin{tabularx}{10cm}{Xr@{}}
  77. \textbf{Base imponible} & \textbf{<?lsmb subtotal ?>} \EUR \\
  78. <?lsmb foreach tax ?>
  79. IVA (<?lsmb taxrate ?>\%) sobre <?lsmb taxbase ?> & <?lsmb tax ?> \EUR\\
  80. <?lsmb end tax ?>
  81. \hline
  82. \textbf{Total} & \textbf{<?lsmb ordtotal ?>} \EUR\\
  83. \end{tabularx}
  84. \end{flushright}
  85. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  86. \end{document}