summaryrefslogtreecommitdiff
path: root/templates/demo/sales_order.tex
blob: a2dddb148cee5e9739cfb9a8719e38fd30662bd3 (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. % & \textbf{Subtotal} & \textbf{<?xlsmb sumcarriedforward ?>} \\
  21. % \end{tabularx}
  22. %
  23. %\newpage
  24. %
  25. %\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
  26. %
  27. %
  28. %\begin{tabularx}{\textwidth}{@{}rlXrlrrr@{}}
  29. % \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  30. % \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
  31. % & carried forward from <?xlsmb lastpage ?> & & & & & <?xlsmb sumcarriedforward ?> \\
  32. %<?xlsmb end pagebreak ?>
  33. \vspace*{0.5cm}
  34. \parbox[t]{.5\textwidth}{
  35. \textbf{To}
  36. \vspace{0.3cm}
  37. <?lsmb name ?>
  38. <?lsmb address1 ?>
  39. <?lsmb address2 ?>
  40. <?lsmb city ?>
  41. <?lsmb IF state ?>
  42. \hspace{-0.1cm}, <?lsmb state ?>
  43. <?lsmb END ?>
  44. <?lsmb zipcode ?>
  45. <?lsmb country ?>
  46. \vspace{0.3cm}
  47. <?lsmb IF contact ?>
  48. <?lsmb contact ?>
  49. \vspace{0.2cm}
  50. <?lsmb END ?>
  51. <?lsmb IF customerphone ?>
  52. Tel: <?lsmb customerphone ?>
  53. <?lsmb END ?>
  54. <?lsmb IF customerfax ?>
  55. Fax: <?lsmb customerfax ?>
  56. <?lsmb END ?>
  57. <?lsmb email ?>
  58. }
  59. \parbox[t]{.5\textwidth}{
  60. \textbf{Ship To}
  61. \vspace{0.3cm}
  62. <?lsmb shiptoname ?>
  63. <?lsmb shiptoaddress1 ?>
  64. <?lsmb shiptoaddress2 ?>
  65. <?lsmb shiptocity ?>
  66. <?lsmb IF shiptostate ?>
  67. \hspace{-0.1cm}, <?lsmb shiptostate ?>
  68. <?lsmb END ?>
  69. <?lsmb shiptozipcode ?>
  70. <?lsmb shiptocountry ?>
  71. \vspace{0.3cm}
  72. <?lsmb IF shiptocontact ?>
  73. <?lsmb shiptocontact ?>
  74. \vspace{0.2cm}
  75. <?lsmb END ?>
  76. <?lsmb IF shiptophone ?>
  77. Tel: <?lsmb shiptophone ?>
  78. <?lsmb END ?>
  79. <?lsmb IF shiptofax ?>
  80. Fax: <?lsmb shiptofax ?>
  81. <?lsmb END ?>
  82. <?lsmb shiptoemail ?>
  83. }
  84. \hfill
  85. \vspace{1cm}
  86. \textbf{S A L E S} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
  87. \hfill
  88. \vspace{1cm}
  89. \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
  90. \textbf{Order \#} & \textbf{Order Date} & \textbf{Required by} & \textbf{Salesperson} & \textbf{Shipping Point} & \textbf{Ship Via} \\ [0.5em]
  91. \hline
  92. <?lsmb ordnumber ?> & <?lsmb orddate ?> & <?lsmb reqdate ?> & <?lsmb employee ?> & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  93. \hline
  94. \end{tabularx}
  95. \vspace{1cm}
  96. \begin{tabularx}{\textwidth}{@{}rlXrlrrr@{}}
  97. \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  98. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
  99. <?lsmb FOREACH number ?>
  100. <?lsmb lc = loop.count - 1 ?>
  101. <?lsmb runningnumber.${lc} ?> &
  102. <?lsmb number.${lc} ?> &
  103. <?lsmb description.${lc} ?> &
  104. <?lsmb qty.${lc} ?> &
  105. <?lsmb unit.${lc} ?> &
  106. <?lsmb sellprice.${lc} ?> &
  107. <?lsmb discountrate.${lc} ?> &
  108. <?lsmb linetotal.${lc} ?> \\
  109. <?lsmb END ?>
  110. \end{tabularx}
  111. \parbox{\textwidth}{
  112. \rule{\textwidth}{2pt}
  113. \vspace{0.2cm}
  114. \hfill
  115. \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  116. & Subtotal & <?lsmb subtotal ?> \\
  117. <?lsmb FOREACH tax ?>
  118. <?lsmb lc = loop.count - 1 ?>
  119. & <?lsmb taxdescription.${lc} ?> on <?lsmb taxbase.${lc} ?> & <?lsmb tax.${lc} ?>\\
  120. <?lsmb END ?>
  121. \hline
  122. & Total & <?lsmb ordtotal ?>\\
  123. \end{tabularx}
  124. \vspace{0.3cm}
  125. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100
  126. \hfill
  127. All prices in \textbf{<?lsmb currency ?>}.
  128. <?lsmb IF terms ?>
  129. Terms: <?lsmb terms ?> days
  130. <?lsmb END ?>
  131. \vspace{12pt}
  132. <?lsmb notes ?>
  133. }
  134. \vfill
  135. \centerline{\textbf{Thank You for your valued business!}}
  136. \rule{\textwidth}{0.5pt}
  137. \end{document}
  138. <?lsmb END ?>