summaryrefslogtreecommitdiff
path: root/templates/demo/work_order.tex
blob: c08a2da52527d032702b2d9800777f2d1ecdcfb2 (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. % Break old pagebreak directive
  12. %<?xlsmb pagebreak 65 27 48 ?>
  13. %\end{tabularx}
  14. %
  15. %\newpage
  16. %
  17. %\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
  18. %
  19. %\begin{tabularx}{\textwidth}{@{}rlXrll@{}}
  20. % \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  21. % & \textbf{Serial Number} \\
  22. %<?xlsmb end pagebreak ?>
  23. \vspace*{0.5cm}
  24. \parbox[t]{.5\textwidth}{
  25. \textbf{To}
  26. \vspace{0.3cm}
  27. <?lsmb name ?>
  28. <?lsmb address1 ?>
  29. <?lsmb address2 ?>
  30. <?lsmb city ?>
  31. <?lsmb IF state ?>
  32. \hspace{-0.1cm}, <?lsmb state ?>
  33. <?lsmb END ?>
  34. <?lsmb zipcode ?>
  35. <?lsmb country ?>
  36. \vspace{0.3cm}
  37. <?lsmb IF contact ?>
  38. <?lsmb contact ?>
  39. \vspace{0.2cm}
  40. <?lsmb END ?>
  41. <?lsmb IF customerphone ?>
  42. Tel: <?lsmb customerphone ?>
  43. <?lsmb END ?>
  44. <?lsmb IF customerfax ?>
  45. Fax: <?lsmb customerfax ?>
  46. <?lsmb END ?>
  47. <?lsmb email ?>
  48. }
  49. \parbox[t]{.5\textwidth}{
  50. \textbf{Ship To}
  51. \vspace{0.3cm}
  52. <?lsmb shiptoname ?>
  53. <?lsmb shiptoaddress1 ?>
  54. <?lsmb shiptoaddress2 ?>
  55. <?lsmb shiptocity ?>
  56. <?lsmb IF shiptostate ?>
  57. \hspace{-0.1cm}, <?lsmb shiptostate ?>
  58. <?lsmb END ?>
  59. <?lsmb shiptozipcode ?>
  60. <?lsmb shiptocountry ?>
  61. \vspace{0.3cm}
  62. <?lsmb IF shiptocontact ?>
  63. <?lsmb shiptocontact ?>
  64. \vspace{0.2cm}
  65. <?lsmb END ?>
  66. <?lsmb IF shiptophone ?>
  67. Tel: <?lsmb shiptophone ?>
  68. <?lsmb END ?>
  69. <?lsmb IF shiptofax ?>
  70. Fax: <?lsmb shiptofax ?>
  71. <?lsmb END ?>
  72. <?lsmb shiptoemail ?>
  73. }
  74. \hfill
  75. \vspace{1cm}
  76. \textbf{W O R K} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
  77. \hfill
  78. \vspace{1cm}
  79. \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
  80. \textbf{Order \#} & \textbf{Order Date} & \textbf{Required by} & \textbf{Salesperson} & \textbf{Shipping Point} & \textbf{Ship Via} \\ [0.5em]
  81. \hline
  82. <?lsmb ordnumber ?> & <?lsmb orddate ?> & <?lsmb reqdate ?> & <?lsmb employee ?> & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  83. \hline
  84. \end{tabularx}
  85. \vspace{1cm}
  86. \begin{tabularx}{\textwidth}{@{}rlXrll@{}}
  87. \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  88. & \textbf{Serial Number} \\
  89. <?lsmb FOREACH number ?>
  90. <?lsmb lc = loop.count - 1 ?>
  91. <?lsmb runningnumber.${lc} ?> &
  92. <?lsmb number.${lc} ?> &
  93. <?lsmb description.${lc} ?> &
  94. <?lsmb qty.${lc} ?> &
  95. <?lsmb unit.${lc} ?> &
  96. <?lsmb serialnumber.${lc} ?> \\
  97. <?lsmb END ?>
  98. \end{tabularx}
  99. \parbox{\textwidth}{
  100. \rule{\textwidth}{2pt}
  101. \vspace{12pt}
  102. <?lsmb notes ?>
  103. }
  104. \vfill
  105. \end{document}