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