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