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