summaryrefslogtreecommitdiff
path: root/templates/Danish-purchase_order.tex
blob: 519f8905b31c070d91531f84f7801de41e01e597 (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. <?lsmb company ?>
  28. <?lsmb address ?>}\hfill
  29. \begin{tabular}[b]{rr@{}}
  30. Tlf. & <?lsmb tel ?>\\
  31. Fax & <?lsmb fax ?>
  32. \end{tabular}
  33. \rule[1.5ex]{\textwidth}{0.5pt}
  34. }
  35. }
  36. \fontfamily{cmss}\fontshape{n}\selectfont
  37. \markboth{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}{\usebox{\hdr}}
  38. \pagestyle{myheadings}
  39. %\thispagestyle{empty} use this with letterhead paper
  40. <?lsmb pagebreak 65 27 37 ?>
  41. \end{tabular*}
  42. \rule{\textwidth}{2pt}
  43. \hfill
  44. \begin{tabularx}{7cm}{Xr@{}}
  45. \textbf{Subtotal} & \textbf{<?lsmb sumcarriedforward ?>} \\
  46. \end{tabularx}
  47. \newpage
  48. \markright{<?lsmb company ?>\hfill <?lsmb 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 <?lsmb lastpage ?> & & & & <?lsmb sumcarriedforward ?> \\
  54. <?lsmb end pagebreak ?>
  55. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  56. \vspace*{2cm}
  57. <?lsmb name ?>
  58. <?lsmb address1 ?>
  59. <?lsmb if address2 ?>
  60. <?lsmb address2 ?>
  61. <?lsmb end address2 ?>
  62. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  63. <?lsmb if country ?>
  64. <?lsmb country ?>
  65. <?lsmb 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} & <?lsmb orddate ?> \\
  71. <?lsmb if reqdate ?>
  72. \textbf{�nsket leveringsdato} & <?lsmb reqdate ?> \\
  73. <?lsmb end reqdate ?>
  74. \textbf{Ordrenummer} & <?lsmb 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. <?lsmb foreach number ?>
  81. <?lsmb number ?> & <?lsmb description ?> & <?lsmb qty ?> &
  82. <?lsmb unit ?> & <?lsmb sellprice ?> & <?lsmb linetotal ?> \\
  83. <?lsmb 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{<?lsmb subtotal ?>} \\
  91. <?lsmb foreach tax ?>
  92. <?lsmb taxdescription ?> on <?lsmb taxbase ?> & <?lsmb tax ?>\\
  93. <?lsmb end tax ?>
  94. \hline
  95. \textbf{Total} & \textbf{<?lsmb ordtotal ?>}\\
  96. \end{tabularx}
  97. \vspace{0.3cm}
  98. \hfill
  99. Alle priser i \textbf{<?lsmb currency ?>}.
  100. \vspace{12pt}
  101. <?lsmb if notes ?>
  102. <?lsmb notes ?>
  103. <?lsmb end if ?>
  104. }
  105. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  106. %\footnotetext[1]{\tiny }
  107. \end{document}