summaryrefslogtreecommitdiff
path: root/templates/Norwegian-invoice.tex
blob: bed0ec62c8b63cc8dc1e88069feb597a15c42a63 (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. <?lsmb company ?>
  26. <?lsmb address ?>}\hfill
  27. \begin{tabular}[b]{rr@{}}
  28. Telefon & <?lsmb tel ?>\\
  29. Telefaks & <?lsmb fax ?>
  30. \end{tabular}
  31. \rule[1.5ex]{\textwidth}{0.5pt}
  32. }
  33. }
  34. \fontfamily{cmss}\fontshape{n}\selectfont
  35. \markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{\usebox{\hdr}}
  36. \pagestyle{myheadings}
  37. %\thispagestyle{empty} use this with letterhead paper
  38. <?lsmb pagebreak 65 27 48 ?>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Subtotal} & \textbf{<?lsmb sumcarriedforward ?>} \\
  44. \end{tabularx}
  45. \newpage
  46. \markright{<?lsmb company ?>\hfill <?lsmb 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 <?lsmb lastpage ?> & & & & & <?lsmb sumcarriedforward ?> \\
  52. <?lsmb 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. <?lsmb name ?>
  60. <?lsmb address1 ?>
  61. <?lsmb if address2 ?>
  62. <?lsmb address2 ?>
  63. <?lsmb end address2 ?>
  64. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  65. <?lsmb if country ?>
  66. <?lsmb country ?>
  67. <?lsmb end country ?>
  68. \vspace{0.3cm}
  69. %<?lsmb if contact ?>
  70. %Attn: <?lsmb contact ?>
  71. %\vspace{0.3cm}
  72. %<?lsmb end contact ?>
  73. \vspace{0.5cm}
  74. <?lsmb if customerphone ?>
  75. Tel: <?lsmb customerphone ?>
  76. <?lsmb end customerphone ?>
  77. <?lsmb if customerfax ?>
  78. Faks: <?lsmb customerfax ?>
  79. <?lsmb end customerfax ?>
  80. <?lsmb email ?>
  81. }
  82. \parbox[t]{7.5cm}{
  83. \textbf{Leveringsadresse}
  84. \vspace{0.5cm}
  85. <?lsmb shiptoname ?>
  86. <?lsmb shiptoaddress1 ?>
  87. <?lsmb if shiptoaddress2 ?>
  88. <?lsmb shiptoaddress2 ?>
  89. <?lsmb end shiptoaddress2 ?>
  90. <?lsmb shiptocity ?> <?lsmb shiptostate ?> <?lsmb shiptozipcode ?>
  91. <?lsmb if shiptocountry ?>
  92. <?lsmb shiptocountry ?>
  93. <?lsmb end shiptocountry ?>
  94. \vspace{0.3cm}
  95. \vspace{0.3cm}
  96. <?lsmb if shiptocontact ?>
  97. Attn: <?lsmb shiptocontact ?>
  98. \vspace{0.3cm}
  99. <?lsmb end shiptocontact ?>
  100. <?lsmb if shiptophone ?>
  101. Tel.: <?lsmb shiptophone ?>
  102. <?lsmb end shiptophone ?>
  103. <?lsmb if shiptofax ?>
  104. Faks: <?lsmb shiptofax ?>
  105. <?lsmb end shiptofax ?>
  106. <?lsmb 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} & <?lsmb invdate ?> \\
  115. \textbf{Fakturanr.} & <?lsmb invnumber ?> \\
  116. \textbf{Ordrenr.} & <?lsmb ordnumber ?> \\
  117. \textbf{Kontakt} & <?lsmb 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. <?lsmb foreach number ?>
  124. <?lsmb number ?> & <?lsmb description ?> & <?lsmb qty ?> &
  125. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb discount ?> & <?lsmb linetotal ?> \\
  126. <?lsmb 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{<?lsmb subtotal ?>} \\
  134. <?lsmb foreach tax ?>
  135. <?lsmb taxdescription ?> on <?lsmb taxbase ?> & <?lsmb tax ?> \\
  136. <?lsmb end tax ?>
  137. <?lsmb if paid ?>
  138. \textbf{Betalt} & - <?lsmb paid ?> \\
  139. <?lsmb end paid ?>
  140. \hline
  141. \textbf{Skyldig} & \textbf{<?lsmb total ?>} \\
  142. \end{tabularx}
  143. \vspace{0.3cm}
  144. \hfill
  145. Alle priser i \textbf{<?lsmb currency ?>} valuta.
  146. \vspace{12pt}
  147. <?lsmb if notes ?>
  148. <?lsmb notes ?>
  149. <?lsmb end if ?>
  150. }
  151. \vfill
  152. <?lsmb if paid ?>
  153. \begin{tabularx}{10cm}{@{}lXlr@{}}
  154. \textbf{Innbetalinger} & & & \\
  155. \hline
  156. \textbf{Dato} & \textbf{Konto} & \textbf{Kilde} & \textbf{Sum} \\
  157. <?lsmb end paid ?>
  158. <?lsmb foreach payment ?>
  159. <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\
  160. <?lsmb end payment ?>
  161. <?lsmb if paid ?>
  162. \end{tabularx}
  163. <?lsmb 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 <?lsmb terms ?> dager fra fakturadato. Ved
  169. forsinket betaling belastes en månedlig rente på 1.5\% per måned,
  170. fra <?lsmb duedate ?> inntil betalingen er fullstendig. Varer som returneres
  171. belastes med 10\% returgebyr. Retur må forhåndsgodkjennes fra
  172. <?lsmb company ?> før varene returneres. Retur må sendes forhåndsbetalt og
  173. må være forsikret. <?lsmb company ?> er ikke ansvarlig for transportskader.
  174. }
  175. \end{document}