summaryrefslogtreecommitdiff
path: root/templates/krings/invoice.tex
blob: 0cc07be600508f1ec8dc9819be1c2b0ff5b16235 (plain)
  1. \documentclass[a4paper,twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage{tabularx}
  4. \usepackage[latin1]{inputenc}
  5. \usepackage[T1]{fontenc}
  6. \usepackage[danish]{babel}
  7. \setlength{\voffset}{0.5cm}
  8. \setlength{\hoffset}{-2.0cm}
  9. \setlength{\topmargin}{0cm}
  10. \setlength{\headheight}{0.5cm}
  11. \setlength{\headsep}{1cm}
  12. \setlength{\topskip}{0pt}
  13. \setlength{\oddsidemargin}{1.0cm}
  14. \setlength{\evensidemargin}{1.0cm}
  15. \setlength{\textwidth}{19.2cm}
  16. \setlength{\textheight}{24.5cm}
  17. \setlength{\footskip}{1cm}
  18. \setlength{\parindent}{0pt}
  19. \renewcommand{\baselinestretch}{1}
  20. \begin{document}
  21. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  22. \newsavebox{\hdr}
  23. \sbox{\hdr}{
  24.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  25. \parbox{\textwidth}{
  26. \parbox[b]{12cm}{
  27. <%company%>
  28. <%address%>}\hfill
  29. \begin{tabular}[b]{rr@{}}
  30. Tlf. & <%tel%>\\
  31. Fax & <%fax%>
  32. \end{tabular}
  33. \rule[1.5ex]{\textwidth}{0.5pt}
  34. }
  35. }
  36. \fontfamily{cmss}\fontshape{n}\selectfont
  37. \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
  38. \pagestyle{myheadings}
  39. %\thispagestyle{empty} use this with letterhead paper
  40. <%pagebreak 90 27 37%>
  41. \end{tabular*}
  42. \rule{\textwidth}{2pt}
  43. \hfill
  44. \begin{tabularx}{7cm}{Xr@{}}
  45. \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
  46. \end{tabularx}
  47. \newpage
  48. \markright{<%company%>\hfill <%invnumber%>}
  49. \vspace*{-12pt}
  50. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  51. \textbf{Nummer} & \textbf{Beskrivelse} & \textbf{Antal} &
  52. \textbf{Enhed} & \textbf{Pris} & \textbf{Rabat} & \textbf{Beløb} \\
  53. & overført fra side <%lastpage%> & & & & & <%sumcarriedforward%> \\
  54. <%end pagebreak%>
  55. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  56. \vspace*{2cm}
  57. <%name%>
  58. <%address1%>
  59. <%if address2%>
  60. <%address2%>
  61. <%end address2%>
  62. <%city%> <%state%> <%zipcode%>
  63. <%if country%>
  64. <%country%>
  65. <%end country%>
  66. \vspace{3.5cm}
  67. \textbf{F A K T U R A}
  68. \hfill
  69. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  70. \textbf{Dato} & <%invdate%> \\
  71. \textbf{Nummer} & <%invnumber%> \\
  72. \textbf{Kunde} & <%customer_id%>
  73. \end{tabular}
  74. \vspace{1cm}
  75. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  76. \textbf{Nummer} & \textbf{Beskrivelse} & \textbf{Antal} &
  77. \textbf{Enhed} & \textbf{Pris} & \textbf{Rabat} & \textbf{Beløb} \\
  78. <%foreach number%>
  79. <%number%> & <%description%> & <%qty%> &
  80. <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
  81. <%end number%>
  82. \end{tabular*}
  83. \parbox{\textwidth}{
  84. \rule{\textwidth}{2pt}
  85. \vspace{0.2cm}
  86. \hfill
  87. \begin{tabularx}{7cm}{Xr@{}}
  88. \textbf{Subtotal} & \textbf{<%subtotal%>} \\
  89. <%foreach tax%>
  90. <%taxdescription%> på <%taxbase%> & <%tax%> \\
  91. <%end tax%>
  92. <%if paid%>
  93. \textbf{Betalt} & - <%paid%> \\
  94. <%end paid%>
  95. \hline
  96. \textbf{At betale} & \textbf{<%total%>} \\
  97. \end{tabularx}
  98. \vspace{0.3cm}
  99. \hfill
  100. Alle priser i \textbf{<%currency%>}.
  101. \vspace{12pt}
  102. <%if notes%>
  103. <%notes%>
  104. <%end if%>
  105. }
  106. \vfill
  107. \centerline{\textbf{Tak for handelen!}}
  108. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  109. \footnotetext[1]{\tiny
  110. Betalingsfrist <%terms%> dage fra fakturadato. Betaling herefter påregnes
  111. 1.5\% per påbegyndt måned startende <%duedate%> og indtil det fulde beløb
  112. er betalt. Returnerede varer modregnes 10\% i ekspeditionsgebyr.
  113. Et returnummer skal tildeles af <%company%> før varer returneres.
  114. Returvarer skal forsendes forudbetalt og forsvarligt forsikret.
  115. <%company%> kan ikke drages til ansvar for skade under transport.}
  116. \end{document}