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