summaryrefslogtreecommitdiff
path: root/templates/Norwegian-purchase_order.tex
blob: 171fcf3e39dd4c975a6933cf5bad5ac67517afe6 (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 ordnumber ?>}{\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 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 <?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. <?lsmb if vendorphone ?>
  74. Tel: <?lsmb vendorphone ?>
  75. <?lsmb end vendorphone ?>
  76. <?lsmb if vendorfax ?>
  77. Fax: <?lsmb vendorfax ?>
  78. <?lsmb end vendorfax ?>
  79. <?lsmb email ?>
  80. }
  81. \parbox[t]{7.5cm}{
  82. \textbf{Send til}
  83. \vspace{0.3cm}
  84. <?lsmb shiptoname ?>
  85. <?lsmb shiptoaddress1 ?>
  86. <?lsmb if shiptoaddress2 ?>
  87. <?lsmb shiptoaddress2 ?>
  88. <?lsmb end shiptoaddress2 ?>
  89. <?lsmb shiptocity ?> <?lsmb shiptostate ?> <?lsmb shiptozipcode ?>
  90. <?lsmb if shiptocountry ?>
  91. <?lsmb shiptocountry ?>
  92. <?lsmb end shiptocountry ?>
  93. \vspace{0.3cm}
  94. <?lsmb if shiptocontact ?>
  95. Attn: <?lsmb shiptocontact ?>
  96. \vspace{0.3cm}
  97. <?lsmb end shiptocontact ?>
  98. <?lsmb if shiptophone ?>
  99. Tel: <?lsmb shiptophone ?>
  100. <?lsmb end shiptophone ?>
  101. <?lsmb if shiptofax ?>
  102. Fax: <?lsmb shiptofax ?>
  103. <?lsmb end shiptofax ?>
  104. <?lsmb 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} & <?lsmb orddate ?> \\
  112. <?lsmb if reqdate ?>
  113. \textbf{Levers innen} & <?lsmb reqdate ?> \\
  114. <?lsmb end reqdate ?>
  115. \textbf{Ordrenr.} & <?lsmb 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. <?lsmb foreach number ?>
  122. <?lsmb number ?> & <?lsmb description ?> & <?lsmb qty ?> &
  123. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb linetotal ?> \\
  124. <?lsmb 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{<?lsmb subtotal ?>} \\
  132. <?lsmb foreach tax ?>
  133. <?lsmb taxdescription ?> on <?lsmb taxbase ?> & <?lsmb tax ?>\\
  134. <?lsmb end tax ?>
  135. \hline
  136. \textbf{Total} & \textbf{<?lsmb ordtotal ?>}\\
  137. \end{tabularx}
  138. \vspace{0.3cm}
  139. \hfill
  140. Alle priser i valuta \textbf{<?lsmb currency ?>}.
  141. \vspace{12pt}
  142. <?lsmb if notes ?>
  143. <?lsmb notes ?>
  144. <?lsmb end if ?>
  145. }
  146. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  147. %\footnotetext[1]{\tiny }
  148. \end{document}