summaryrefslogtreecommitdiff
path: root/templates/German-purchase_order.tex
blob: 4f73aa38b99ac0fd5dbb97f67fb6d384b4ed0eaf (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. Telefax & <%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 37%>
  39. \end{tabular*}
  40. \rule{\textwidth}{2pt}
  41. \hfill
  42. \begin{tabularx}{7cm}{Xr@{}}
  43. \textbf{Zwischensumme} & \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{Artikel} & \textbf{Anz} &
  50. \textbf{Einh} & \textbf{Preis} & \textbf{Total} \\
  51. & Übertrag von <%lastpage%> & & & & <%sumcarriedforward%> \\
  52. <%end pagebreak%>
  53. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  54. \vspace*{2cm}
  55. <%name%>
  56. <%address1%>
  57. <%if address2%>
  58. <%address2%>
  59. <%end address2%>
  60. <%city%> <%state%> <%zipcode%>
  61. <%if country%>
  62. <%country%>
  63. <%end country%>
  64. \vspace{3.5cm}
  65. \textbf{B E S T E L L U N G}
  66. \hfill
  67. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  68. \textbf{Datum} & <%orddate%> \\
  69. <%if reqdate%>
  70. \textbf{Lieferung bis} & <%reqdate%> \\
  71. <%end reqdate%>
  72. \textbf{Nummer} & <%ordnumber%>
  73. \end{tabular}
  74. \vspace{1cm}
  75. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  76. \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
  77. \textbf{Einh} & \textbf{Preis} & \textbf{Total} \\
  78. <%foreach number%>
  79. <%number%> & <%description%> & <%qty%> &
  80. <%unit%> & <%sellprice%> & <%linetotal%> \\
  81. <%end number%>
  82. \end{tabular*}
  83. \parbox{\textwidth}{
  84. \rule{\textwidth}{2pt}
  85. \vspace{0.2cm}
  86. \hfill
  87. \begin{tabularx}{7cm}{Xr@{}}
  88. \textbf{Zwischensumme} & \textbf{<%subtotal%>} \\
  89. <%foreach tax%>
  90. <%taxdescription%> on <%taxbase%> & <%tax%>\\
  91. <%end tax%>
  92. \hline
  93. \textbf{Total} & \textbf{<%ordtotal%>}\\
  94. \end{tabularx}
  95. \vspace{0.3cm}
  96. \hfill
  97. Alle Preise in \textbf{<%currency%>}.
  98. \vspace{12pt}
  99. <%if notes%>
  100. <%notes%>
  101. <%end if%>
  102. }
  103. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  104. %\footnotetext[1]{\tiny }
  105. \end{document}