summaryrefslogtreecommitdiff
path: root/templates/demo/purchase_order.tex
blob: c60073a65bf9fef350a1b5ce3a117cc504fce9df (plain)
  1. \documentclass{scrartcl}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{tabularx}
  4. \usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
  5. \usepackage{graphicx}
  6. \begin{document}
  7. \pagestyle{myheadings}
  8. \thispagestyle{empty}
  9. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  10. <?lsmb INCLUDE letterhead.tex ?>
  11. % Breaking old pagebreak directive
  12. %<?xlsmb pagebreak 65 27 48 ?>
  13. %\end{tabularx}
  14. %
  15. % \rule{\textwidth}{2pt}
  16. %
  17. % \hfill
  18. % \begin{tabularx}{7cm}{Xr@{\hspace{1cm}r@{}}
  19. % & Subtotal & <?xlsmb sumcarriedforward ?> \\
  20. % \end{tabularx}
  21. %
  22. %\newpage
  23. %
  24. %\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
  25. %
  26. %\begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
  27. % \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  28. % \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  29. % & carried forward from <?xlsmb lastpage ?> & & & & <?xlsmb sumcarriedforward ?> \\
  30. %<?xlsmb end pagebreak ?>
  31. \vspace*{0.5cm}
  32. \parbox[t]{.5\textwidth}{
  33. \textbf{To}
  34. \vspace{0.3cm}
  35. <?lsmb name ?>
  36. <?lsmb address1 ?>
  37. <?lsmb address2 ?>
  38. <?lsmb city ?>
  39. <?lsmb IF state ?>
  40. \hspace{-0.1cm}, <?lsmb state ?>
  41. <?lsmb END ?>
  42. <?lsmb zipcode ?>
  43. <?lsmb country ?>
  44. \vspace{0.3cm}
  45. <?lsmb IF contact ?>
  46. Attn: <?lsmb contact ?>
  47. \vspace{0.2cm}
  48. <?lsmb END ?>
  49. <?lsmb IF vendorphone ?>
  50. Tel: <?lsmb vendorphone ?>
  51. <?lsmb END ?>
  52. <?lsmb IF vendorfax ?>
  53. Fax: <?lsmb vendorfax ?>
  54. <?lsmb END ?>
  55. <?lsmb email ?>
  56. }
  57. \parbox[t]{.5\textwidth}{
  58. \textbf{Ship To}
  59. \vspace{0.3cm}
  60. <?lsmb shiptoname ?>
  61. <?lsmb shiptoaddress1 ?>
  62. <?lsmb shiptoaddress2 ?>
  63. <?lsmb shiptocity ?>
  64. <?lsmb IF shiptostate ?>
  65. \hspace{-0.1cm}, <?lsmb shiptostate ?>
  66. <?lsmb END ?>
  67. <?lsmb shiptozipcode ?>
  68. <?lsmb shiptocountry ?>
  69. \vspace{0.3cm}
  70. <?lsmb IF shiptocontact ?>
  71. Attn: <?lsmb shiptocontact ?>
  72. \vspace{0.2cm}
  73. <?lsmb END ?>
  74. <?lsmb IF shiptophone ?>
  75. Tel: <?lsmb shiptophone ?>
  76. <?lsmb END ?>
  77. <?lsmb IF shiptofax ?>
  78. Fax: <?lsmb shiptofax ?>
  79. <?lsmb END ?>
  80. <?lsmb shiptoemail ?>
  81. }
  82. \hfill
  83. \vspace{1cm}
  84. \textbf{P U R C H A S E} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
  85. \hfill
  86. \vspace{1cm}
  87. \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
  88. \textbf{Order \#} & \textbf{Date} & \textbf{Required by} & \textbf{Contact} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5ex]
  89. \hline
  90. <?lsmb ordnumber ?> & <?lsmb orddate ?> & <?lsmb reqdate ?> & <?lsmb employee ?> & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  91. \hline
  92. \end{tabularx}
  93. \vspace{1cm}
  94. \begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
  95. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  96. \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
  97. <?lsmb FOREACH number ?>
  98. <?lsmb lc = loop.count - 1 ?>
  99. <?lsmb number.${lc} ?> &
  100. <?lsmb description.${lc} ?> &
  101. <?lsmb qty.${lc} ?> &
  102. <?lsmb unit.${lc} ?> &
  103. <?lsmb sellprice.${lc} ?> &
  104. <?lsmb linetotal.${lc} ?> \\
  105. <?lsmb END ?>
  106. \end{tabularx}
  107. \parbox{\textwidth}{
  108. \rule{\textwidth}{2pt}
  109. \vspace{0.2cm}
  110. \hfill
  111. \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  112. & Subtotal & <?lsmb subtotal ?> \\
  113. <?lsmb FOREACH tax ?>
  114. <?lsmb lc = loop.count - 1 ?>
  115. & <?lsmb taxdescription.${lc} ?> on <?lsmb taxbase.${lc} ?> & <?lsmb tax.${lc} ?>\\
  116. <?lsmb END ?>
  117. \hline
  118. & Total & <?lsmb ordtotal ?>\\
  119. \end{tabularx}
  120. \vspace{0.3cm}
  121. \hfill
  122. All prices in \textbf{<?lsmb currency ?>}.
  123. \vspace{12pt}
  124. <?lsmb notes ?>
  125. }
  126. %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
  127. %\footnotetext[1]{\tiny }
  128. \end{document}