summaryrefslogtreecommitdiff
path: root/templates/Danish-purchase_order.tex
blob: 59e2871502df5cdfea466d473a7b0aebfc5cb970 (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. <%company%>
  28. <%address%>}\hfill
  29. \begin{tabular}[b]{rr@{}}
  30. Tlf. & <%tel%>\\
  31. Fax & <%fax%>
  32. \end{tabular}
  33. \rule[1.5ex]{\textwidth}{0.5pt}
  34. }
  35. }
  36. \fontfamily{cmss}\fontshape{n}\selectfont
  37. \markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
  38. \pagestyle{myheadings}
  39. %\thispagestyle{empty} use this with letterhead paper
  40. <%pagebreak 65 27 37%>
  41. \end{tabular*}
  42. \rule{\textwidth}{2pt}
  43. \hfill
  44. \begin{tabularx}{7cm}{Xr@{}}
  45. \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
  46. \end{tabularx}
  47. \newpage
  48. \markright{<%company%>\hfill <%ordnumber%>}
  49. \vspace*{-12pt}
  50. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  51. \textbf{Nummer} & \textbf{Beskrivelse} & \textbf{Antal} &
  52. \textbf{Enhed} & \textbf{Pris} & \textbf{Beløb} \\
  53. & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
  54. <%end pagebreak%>
  55. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  56. \vspace*{2cm}
  57. <%name%>
  58. <%address1%>
  59. <%if address2%>
  60. <%address2%>
  61. <%end address2%>
  62. <%city%> <%state%> <%zipcode%>
  63. <%if country%>
  64. <%country%>
  65. <%end country%>
  66. \vspace{3.5cm}
  67. \textbf{I N D K Ø B S O R D R E}
  68. \hfill
  69. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  70. \textbf{Dato} & <%orddate%> \\
  71. <%if reqdate%>
  72. \textbf{Ønsket leveringsdato} & <%reqdate%> \\
  73. <%end reqdate%>
  74. \textbf{Ordrenummer} & <%ordnumber%>
  75. \end{tabular}
  76. \vspace{1cm}
  77. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  78. \textbf{Varenummer} & \textbf{Beskrivelse} & \textbf{Antal} &
  79. \textbf{Enhed} & \textbf{Pris} & \textbf{Beløb} \\
  80. <%foreach number%>
  81. <%number%> & <%description%> & <%qty%> &
  82. <%unit%> & <%sellprice%> & <%linetotal%> \\
  83. <%end number%>
  84. \end{tabular*}
  85. \parbox{\textwidth}{
  86. \rule{\textwidth}{2pt}
  87. \vspace{0.2cm}
  88. \hfill
  89. \begin{tabularx}{7cm}{Xr@{}}
  90. \textbf{Subtotal} & \textbf{<%subtotal%>} \\
  91. <%foreach tax%>
  92. <%taxdescription%> on <%taxbase%> & <%tax%>\\
  93. <%end tax%>
  94. \hline
  95. \textbf{Total} & \textbf{<%ordtotal%>}\\
  96. \end{tabularx}
  97. \vspace{0.3cm}
  98. \hfill
  99. Alle priser i \textbf{<%currency%>}.
  100. \vspace{12pt}
  101. <%if notes%>
  102. <%notes%>
  103. <%end if%>
  104. }
  105. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  106. %\footnotetext[1]{\tiny }
  107. \end{document}