summaryrefslogtreecommitdiff
path: root/templates/French-purchase_order.tex
blob: 298caefef32ed5acde488f75521e36ac9698abbf (plain)
  1. \documentclass[twoside]{scrartcl}
  2. \usepackage[frame]{xy}
  3. \usepackage[frenchb]{babel}
  4. \usepackage[latin1]{inputenc}
  5. \usepackage{tabularx}
  6. \setlength{\voffset}{0.5cm}
  7. \setlength{\hoffset}{-2.0cm}
  8. \setlength{\topmargin}{0cm}
  9. \setlength{\headheight}{0.5cm}
  10. \setlength{\headsep}{1cm}
  11. \setlength{\topskip}{0pt}
  12. \setlength{\oddsidemargin}{1.0cm}
  13. \setlength{\evensidemargin}{1.0cm}
  14. \setlength{\textwidth}{19.2cm}
  15. \setlength{\textheight}{24.5cm}
  16. \setlength{\footskip}{1cm}
  17. \setlength{\parindent}{0pt}
  18. \renewcommand{\baselinestretch}{1}
  19. \begin{document}
  20. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  21. \newsavebox{\hdr}
  22. \sbox{\hdr}{
  23.   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  24. \parbox{\textwidth}{
  25. \parbox[b]{12cm}{
  26. <?lsmb company ?>
  27. <?lsmb address ?>}\hfill
  28. \begin{tabular}[b]{rr@{}}
  29. Téléphone & <?lsmb tel ?>\\
  30. Télécopieur & <?lsmb fax ?>
  31. \end{tabular}
  32. \rule[1.5ex]{\textwidth}{0.5pt}
  33. }
  34. }
  35. \fontfamily{cmss}\fontshape{n}\selectfont
  36. \markboth{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}{\usebox{\hdr}}
  37. \pagestyle{myheadings}
  38. %\thispagestyle{empty} use this with letterhead paper
  39. <?lsmb pagebreak 65 27 37 ?>
  40. \end{tabular*}
  41. \rule{\textwidth}{2pt}
  42. \hfill
  43. \begin{tabularx}{7cm}{Xr@{}}
  44. \textbf{Sous-total} & \textbf{<?lsmb sumcarriedforward ?>} \\
  45. \end{tabularx}
  46. \newpage
  47. \markright{<?lsmb company ?>\hfill <?lsmb ordnumber ?>}
  48. \vspace*{-12pt}
  49. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  50. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  51. \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  52. & reporté de la page <?lsmb lastpage ?> & & & & <?lsmb sumcarriedforward ?> \\
  53. <?lsmb end pagebreak ?>
  54. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  55. \vspace*{2cm}
  56. <?lsmb name ?>
  57. <?lsmb address1 ?>
  58. <?lsmb if address2 ?>
  59. <?lsmb address2 ?>
  60. <?lsmb end address2 ?>
  61. <?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
  62. <?lsmb if country ?>
  63. <?lsmb country ?>
  64. <?lsmb end country ?>
  65. \vspace{3.5cm}
  66. \textbf{B O N} \parbox{0.3cm}{\hfill} \textbf{D E} \parbox{0.3cm}{\hfill}
  67. \textbf{C O M M A N D E}
  68. \hfill
  69. \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
  70. \textbf{Date de la commande} & <?lsmb orddate ?> \\
  71. <?lsmb if reqdate ?>
  72. \textbf{Livrable le} & <?lsmb reqdate ?> \\
  73. <?lsmb end reqdate ?>
  74. \textbf{Numéro de commande} & <?lsmb ordnumber ?>
  75. \end{tabular}
  76. \vspace{1cm}
  77. \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
  78. \textbf{Numéro} & \textbf{Description} & \textbf{Qté} &
  79. \textbf{Unité} & \textbf{Prix} & \textbf{Montant} \\
  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{Sous-total} & \textbf{<?lsmb subtotal ?>} \\
  91. <?lsmb foreach tax ?>
  92. <?lsmb taxdescription ?> de <?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. Tous les prix indiqués sont en \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}