summaryrefslogtreecommitdiff
path: root/templates/Norwegian-purchase_order.tex
blob: e613f158b1f4597275b4e76212025ff16fa1954b (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 <%ordnumber%>}{\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 <%ordnumber%>}
  47. \vspace*{-12pt}
  48. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  49. \textbf{Nummer} & \textbf{Beskrivelse} & \textbf{Ant.} &
  50. \textbf{Enhet} & \textbf{Pris} & \textbf{Sum} \\
  51. & carried forward from <%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. <%if vendorphone%>
  74. Tel: <%vendorphone%>
  75. <%end vendorphone%>
  76. <%if vendorfax%>
  77. Fax: <%vendorfax%>
  78. <%end vendorfax%>
  79. <%email%>
  80. }
  81. \parbox[t]{7.5cm}{
  82. \textbf{Send til}
  83. \vspace{0.3cm}
  84. <%shiptoname%>
  85. <%shiptoaddress1%>
  86. <%if shiptoaddress2%>
  87. <%shiptoaddress2%>
  88. <%end shiptoaddress2%>
  89. <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
  90. <%if shiptocountry%>
  91. <%shiptocountry%>
  92. <%end shiptocountry%>
  93. \vspace{0.3cm}
  94. <%if shiptocontact%>
  95. Attn: <%shiptocontact%>
  96. \vspace{0.3cm}
  97. <%end shiptocontact%>
  98. <%if shiptophone%>
  99. Tel: <%shiptophone%>
  100. <%end shiptophone%>
  101. <%if shiptofax%>
  102. Fax: <%shiptofax%>
  103. <%end shiptofax%>
  104. <%shiptoemail%>
  105. }
  106. \hfill
  107. \vspace{1cm}
  108. \textbf{I N N K J Ø P S} \parbox{0.3cm}{\hfill} \textbf{O R D R E}
  109. \hfill
  110. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  111. \textbf{Dato} & <%orddate%> \\
  112. <%if reqdate%>
  113. \textbf{Levers innen} & <%reqdate%> \\
  114. <%end reqdate%>
  115. \textbf{Ordrenr.} & <%ordnumber%>
  116. \end{tabular}
  117. \vspace{1cm}
  118. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  119. \textbf{Nummer} & \textbf{Beskrivelse} & \textbf{Ant.} &
  120. \textbf{Enhet} & \textbf{Pris} & \textbf{Sum} \\
  121. <%foreach number%>
  122. <%number%> & <%description%> & <%qty%> &
  123. <%unit%> & <%sellprice%> & <%linetotal%> \\
  124. <%end number%>
  125. \end{tabular*}
  126. \parbox{\textwidth}{
  127. \rule{\textwidth}{2pt}
  128. \vspace{0.2cm}
  129. \hfill
  130. \begin{tabularx}{7cm}{Xr@{}}
  131. \textbf{Subtotal} & \textbf{<%subtotal%>} \\
  132. <%foreach tax%>
  133. <%taxdescription%> on <%taxbase%> & <%tax%>\\
  134. <%end tax%>
  135. \hline
  136. \textbf{Total} & \textbf{<%ordtotal%>}\\
  137. \end{tabularx}
  138. \vspace{0.3cm}
  139. \hfill
  140. Alle priser i valuta \textbf{<%currency%>}.
  141. \vspace{12pt}
  142. <%if notes%>
  143. <%notes%>
  144. <%end if%>
  145. }
  146. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  147. %\footnotetext[1]{\tiny }
  148. \end{document}