summaryrefslogtreecommitdiff
path: root/templates/Dutch-invoice.tex
blob: 6a6c9e26a817ddfbaca1055eada7685c19d4d43b (plain)
  1. \documentclass[twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \setlength{\voffset}{0.5cm}
  6. \setlength{\hoffset}{-2.0cm}
  7. \setlength{\topmargin}{0cm}
  8. \setlength{\headheight}{0.5cm}
  9. \setlength{\headsep}{1cm}
  10. \setlength{\topskip}{0pt}
  11. \setlength{\oddsidemargin}{1.0cm}
  12. \setlength{\evensidemargin}{1.0cm}
  13. \setlength{\textwidth}{19.2cm}
  14. \setlength{\textheight}{24.5cm}
  15. \setlength{\footskip}{1cm}
  16. \setlength{\parindent}{0pt}
  17. \renewcommand{\baselinestretch}{1}
  18. \begin{document}
  19. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  20. \newsavebox{\hdr}
  21. \sbox{\hdr}{
  22.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  23. \parbox{\textwidth}{
  24. \parbox[b]{12cm}{
  25. <%company%>
  26. <%address%>}\hfill
  27. \begin{tabular}[b]{rr@{}}
  28. Telephone & <%tel%>\\
  29. Facsimile & <%fax%>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <%pagebreak 65 27 37%>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<%company%>\hfill <%invnumber%>}
  47. \vspace*{-12pt}
  48. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  49. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  50. \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
  51. & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{2cm}
  55. <%name%>
  56. <%address1%>
  57. <%if address2%>
  58. <%address2%>
  59. <%end address2%>
  60. <%city%> <%state%> <%zipcode%>
  61. <%if country%>
  62. <%country%>
  63. <%end country%>
  64. \vspace{3.5cm}
  65. \textbf{F A K T U U R}
  66. \hfill
  67. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  68. \textbf{Datum} & <%invdate%> \\
  69. \textbf{Faktuurnummer} & <%invnumber%> \\
  70. \textbf{Klantnummer} & <%customer_id%>
  71. \end{tabular}
  72. \vspace{1cm}
  73. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  74. \textbf{Artikelnr} & \textbf{Omschrijving} & \textbf{Aantal} &
  75. \textbf{Eenheid} & \textbf{Prijs} & \textbf{Korting} & \textbf{Bedrag} \\
  76. <%foreach number%>
  77. <%number%> & <%description%> & <%qty%> &
  78. <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
  79. <%end number%>
  80. \end{tabular*}
  81. \parbox{\textwidth}{
  82. \rule{\textwidth}{2pt}
  83. \vspace{0.2cm}
  84. \hfill
  85. \begin{tabularx}{7cm}{Xr@{}}
  86. \textbf{Subtotaal} & \textbf{<%subtotal%>} \\
  87. <%foreach tax%>
  88. <%taxdescription%> on <%taxbase%> & <%tax%>\\
  89. <%end tax%>
  90. \hline
  91. \textbf{Totaal} & \textbf{<%total%>}\\
  92. \end{tabularx}
  93. \vspace{0.3cm}
  94. \hfill
  95. Alle prijzen in \textbf{<%currency%>}.
  96. \vspace{12pt}
  97. <%if notes%>
  98. <%notes%>
  99. <%end if%>
  100. }
  101. \vfill
  102. \centerline{\textbf{Dank voor uw gewaardeerde klandizie!}}
  103. \end{document}