summaryrefslogtreecommitdiff
path: root/templates/Norwegian-invoice.tex
blob: bd105f84ef000e94dc33623e458cafd0ac3f12a1 (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. Telefon & <%tel%>\\
  29. Telefaks & <%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 48%>
  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{Nummer} & \textbf{Beskrivelse} & \textbf{Ant.} &
  50. \textbf{Enhet} & \textbf{Pris} & \textbf{Rabatt} & \textbf{Sum} \\
  51. & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{0.5cm}
  55. \parbox[t]{1cm}{\hfill}
  56. \parbox[t]{10.5cm}{
  57. \textbf{Til}
  58. \vspace{0.5cm}
  59. <%name%>
  60. <%address1%>
  61. <%if address2%>
  62. <%address2%>
  63. <%end address2%>
  64. <%city%> <%state%> <%zipcode%>
  65. <%if country%>
  66. <%country%>
  67. <%end country%>
  68. \vspace{0.3cm}
  69. %<%if contact%>
  70. %Attn: <%contact%>
  71. %\vspace{0.3cm}
  72. %<%end contact%>
  73. \vspace{0.5cm}
  74. <%if customerphone%>
  75. Tel: <%customerphone%>
  76. <%end customerphone%>
  77. <%if customerfax%>
  78. Faks: <%customerfax%>
  79. <%end customerfax%>
  80. <%email%>
  81. }
  82. \parbox[t]{7.5cm}{
  83. \textbf{Leveringsadresse}
  84. \vspace{0.5cm}
  85. <%shiptoname%>
  86. <%shiptoaddress1%>
  87. <%if shiptoaddress2%>
  88. <%shiptoaddress2%>
  89. <%end shiptoaddress2%>
  90. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  91. <%if shiptocountry%>
  92. <%shiptocountry%>
  93. <%end shiptocountry%>
  94. \vspace{0.3cm}
  95. \vspace{0.3cm}
  96. <%if shiptocontact%>
  97. Attn: <%shiptocontact%>
  98. \vspace{0.3cm}
  99. <%end shiptocontact%>
  100. <%if shiptophone%>
  101. Tel.: <%shiptophone%>
  102. <%end shiptophone%>
  103. <%if shiptofax%>
  104. Faks: <%shiptofax%>
  105. <%end shiptofax%>
  106. <%shiptoemail%>
  107. }
  108. \hfill
  109. \vspace{1cm}
  110. \textbf{F A K T U R A}
  111. \hfill
  112. \vspace{1cm}
  113. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  114. \textbf{Dato} & <%invdate%> \\
  115. \textbf{Fakturanr.} & <%invnumber%> \\
  116. \textbf{Ordrenr.} & <%ordnumber%> \\
  117. \textbf{Kontakt} & <%employee%>
  118. \end{tabular}
  119. \vspace{1cm}
  120. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
  121. \textbf{Nummer} & \textbf{Beskrivelse} & \textbf{Ant.} &
  122. \textbf{Enhet} & \textbf{Pris} & \textbf{Rabatt} & \textbf{Sum} \\
  123. <%foreach number%>
  124. <%number%> & <%description%> & <%qty%> &
  125. <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
  126. <%end number%>
  127. \end{tabular*}
  128. \parbox{\textwidth}{
  129. \rule{\textwidth}{2pt}
  130. \vspace{0.2cm}
  131. \hfill
  132. \begin{tabularx}{7cm}{Xr@{}}
  133. \textbf{Subtotal} & \textbf{<%subtotal%>} \\
  134. <%foreach tax%>
  135. <%taxdescription%> on <%taxbase%> & <%tax%> \\
  136. <%end tax%>
  137. <%if paid%>
  138. \textbf{Betalt} & - <%paid%> \\
  139. <%end paid%>
  140. \hline
  141. \textbf{Skyldig} & \textbf{<%total%>} \\
  142. \end{tabularx}
  143. \vspace{0.3cm}
  144. \hfill
  145. Alle priser i \textbf{<%currency%>} valuta.
  146. \vspace{12pt}
  147. <%if notes%>
  148. <%notes%>
  149. <%end if%>
  150. }
  151. \vfill
  152. <%if paid%>
  153. \begin{tabularx}{10cm}{@{}lXlr@{}}
  154. \textbf{Innbetalinger} & & & \\
  155. \hline
  156. \textbf{Dato} & \textbf{Konto} & \textbf{Kilde} & \textbf{Sum} \\
  157. <%end paid%>
  158. <%foreach payment%>
  159. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
  160. <%end payment%>
  161. <%if paid%>
  162. \end{tabularx}
  163. <%end paid%>
  164. \vspace{1cm}
  165. \centerline{\textbf{Takk for handelen!}}
  166. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  167. \footnotetext[1]{\tiny
  168. Betalingen må betales innen <%terms%> dager fra fakturadato. Ved
  169. forsinket betaling belastes en månedlig rente på 1.5\% per måned,
  170. fra <%duedate%> inntil betalingen er fullstendig. Varer som returneres
  171. belastes med 10\% returgebyr. Retur må forhåndsgodkjennes fra
  172. <%company%> før varene returneres. Retur må sendes forhåndsbetalt og
  173. må være forsikret. <%company%> er ikke ansvarlig for transportskader.
  174. }
  175. \end{document}