summaryrefslogtreecommitdiff
path: root/templates/Danish-invoice.tex
blob: a190d92a2df9c62be62ba58aba57171b8cea9f37 (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. <?lsmb company ?>
  28. <?lsmb address ?>}\hfill
  29. \begin{tabular}[b]{rr@{}}
  30. Tlf. & <?lsmb tel ?>\\
  31. Fax & <?lsmb fax ?>
  32. \end{tabular}
  33. \rule[1.5ex]{\textwidth}{0.5pt}
  34. }
  35. }
  36. \fontfamily{cmss}\fontshape{n}\selectfont
  37. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{\usebox{\hdr}}
  38. \pagestyle{myheadings}
  39. %\thispagestyle{empty} use this with letterhead paper
  40. <?lsmb pagebreak 65 27 37 ?>
  41. \end{tabular*}
  42. \rule{\textwidth}{2pt}
  43. \hfill
  44. \begin{tabularx}{7cm}{Xr@{}}
  45. \textbf{Subtotal} & \textbf{<?lsmb sumcarriedforward ?>} \\
  46. \end{tabularx}
  47. \newpage
  48. \markright{<?lsmb company ?>\hfill <?lsmb 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 <?lsmb lastpage ?> & & & & & <?lsmb sumcarriedforward ?> \\
  54. <?lsmb end pagebreak ?>
  55. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  56. \vspace*{2cm}
  57. <?lsmb name ?>
  58. <?lsmb address1 ?>
  59. <?lsmb if address2 ?>
  60. <?lsmb address2 ?>
  61. <?lsmb end address2 ?>
  62. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  63. <?lsmb if country ?>
  64. <?lsmb country ?>
  65. <?lsmb 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} & <?lsmb invdate ?> \\
  71. \textbf{Nummer} & <?lsmb invnumber ?> \\
  72. \textbf{Kunde} & <?lsmb 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. <?lsmb foreach number ?>
  79. <?lsmb number ?> & <?lsmb description ?> & <?lsmb qty ?> &
  80. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb discount ?> & <?lsmb linetotal ?> \\
  81. <?lsmb 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{<?lsmb subtotal ?>} \\
  89. <?lsmb foreach tax ?>
  90. <?lsmb taxdescription ?> p� <?lsmb taxbase ?> & <?lsmb tax ?> \\
  91. <?lsmb end tax ?>
  92. <?lsmb if paid ?>
  93. \textbf{Betalt} & - <?lsmb paid ?> \\
  94. <?lsmb end paid ?>
  95. \hline
  96. \textbf{At betale} & \textbf{<?lsmb total ?>} \\
  97. \end{tabularx}
  98. \vspace{0.3cm}
  99. \hfill
  100. Alle priser i \textbf{<?lsmb currency ?>}.
  101. \vspace{12pt}
  102. <?lsmb if notes ?>
  103. <?lsmb notes ?>
  104. <?lsmb end if ?>
  105. }
  106. \vfill
  107. \centerline{\textbf{Tak for handelen!}}
  108. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  109. \footnotetext[1]{\tiny
  110. Betalingsfrist <?lsmb terms ?> dage fra fakturadato. Betaling herefter p�regnes
  111. 1.5\% per p�begyndt m�ned startende <?lsmb duedate ?> og indtil det fulde bel�b
  112. er betalt. Returnerede varer modregnes 10\% i ekspeditionsgebyr.
  113. Et returnummer skal tildeles af <?lsmb company ?> f�r varer returneres.
  114. Returvarer skal forsendes forudbetalt og forsvarligt forsikret.
  115. <?lsmb company ?> kan ikke drages til ansvar for skade under transport.}
  116. \end{document}