summaryrefslogtreecommitdiff
path: root/templates/demo/sales_order.tex
blob: 2d382cb2a5fe76a0c9ecd54f84b42ba5bcdc3c64 (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. % & \textbf{Subtotal} & \textbf{<?xlsmb sumcarriedforward ?>} \\
  20. % \end{tabularx}
  21. %
  22. %\newpage
  23. %
  24. %\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
  25. %
  26. %
  27. %\begin{tabularx}{\textwidth}{@{}rlXrlrrr@{}}
  28. % \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  29. % \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \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. <?lsmb contact ?>
  48. \vspace{0.2cm}
  49. <?lsmb END ?>
  50. <?lsmb IF customerphone ?>
  51. Tel: <?lsmb customerphone ?>
  52. <?lsmb END ?>
  53. <?lsmb IF customerfax ?>
  54. Fax: <?lsmb customerfax ?>
  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. <?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{S A L E S} \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{Order Date} & \textbf{Required by} & \textbf{Salesperson} & \textbf{Shipping Point} & \textbf{Ship Via} \\ [0.5em]
  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}{@{}rlXrlrrr@{}}
  96. \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  97. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
  98. <?lsmb FOREACH number ?>
  99. <?lsmb lc = loop.count - 1 ?>
  100. <?lsmb runningnumber.${lc} ?> &
  101. <?lsmb number.${lc} ?> &
  102. <?lsmb description.${lc} ?> &
  103. <?lsmb qty.${lc} ?> &
  104. <?lsmb unit.${lc} ?> &
  105. <?lsmb sellprice.${lc} ?> &
  106. <?lsmb discountrate.${lc} ?> &
  107. <?lsmb linetotal.${lc} ?> \\
  108. <?lsmb END ?>
  109. \end{tabularx}
  110. \parbox{\textwidth}{
  111. \rule{\textwidth}{2pt}
  112. \vspace{0.2cm}
  113. \hfill
  114. \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  115. & Subtotal & <?lsmb subtotal ?> \\
  116. <?lsmb FOREACH tax ?>
  117. <?lsmb lc = loop.count - 1 ?>
  118. & <?lsmb taxdescription.${lc} ?> on <?lsmb taxbase.${lc} ?> & <?lsmb tax.${lc} ?>\\
  119. <?lsmb END ?>
  120. \hline
  121. & Total & <?lsmb ordtotal ?>\\
  122. \end{tabularx}
  123. \vspace{0.3cm}
  124. <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100
  125. \hfill
  126. All prices in \textbf{<?lsmb currency ?>}.
  127. <?lsmb IF terms ?>
  128. Terms: <?lsmb terms ?> days
  129. <?lsmb END ?>
  130. \vspace{12pt}
  131. <?lsmb notes ?>
  132. }
  133. \vfill
  134. \centerline{\textbf{Thank You for your valued business!}}
  135. \rule{\textwidth}{0.5pt}
  136. \end{document}