summaryrefslogtreecommitdiff
path: root/templates/demo/packing_list.tex
blob: 0bda54b5989bd0a4fb2c111387dde1f45ca26668 (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. \newsavebox{\ftr}
  12. \sbox{\ftr}{
  13. \parbox{\textwidth}{
  14. \tiny
  15. \rule[1.5em]{\textwidth}{0.5pt}
  16. Items returned are subject to a 10\% restocking charge.
  17. A return authorization must be obtained from <?lsmb company ?> before goods are
  18. returned. Returns must be shipped prepaid and properly insured.
  19. <?lsmb company ?> will not be responsible for damages during transit.
  20. }
  21. }
  22. <?lsmb INCLUDE letterhead.tex ?>
  23. % Breaking old pagebreak directive
  24. %<?xlsmb pagebreak 65 27 37 ?>
  25. %\end{tabularx}
  26. %
  27. %\newpage
  28. %
  29. %\markboth{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb ordnumber ?>}
  30. %
  31. %\begin{tabularx}{\textwidth}{@{}rlXllrrl@{}}
  32. % \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\
  33. %<?xlsmb end pagebreak ?>
  34. \vspace*{0.5cm}
  35. \parbox[t]{.5\textwidth}{
  36. \textbf{Ship To}} \hfill
  37. \vspace{0.3cm}
  38. \parbox[t]{.5\textwidth}{
  39. <?lsmb shiptoname ?>
  40. <?lsmb shiptoaddress1 ?>
  41. <?lsmb shiptoaddress2 ?>
  42. <?lsmb shiptocity ?>
  43. <?lsmb IF shiptostate ?>
  44. \hspace{-0.1cm}, <?lsmb shiptostate ?>
  45. <?lsmb END ?>
  46. <?lsmb shiptozipcode ?>
  47. <?lsmb shiptocountry ?>
  48. }
  49. \parbox[t]{.5\textwidth}{
  50. <?lsmb shiptocontact ?>
  51. <?lsmb IF shiptophone ?>
  52. Tel: <?lsmb shiptophone ?>
  53. <?lsmb END ?>
  54. <?lsmb IF shiptofax ?>
  55. Fax: <?lsmb shiptofax ?>
  56. <?lsmb END ?>
  57. <?lsmb shiptoemail ?>
  58. }
  59. \hfill
  60. \vspace{1cm}
  61. \textbf{P A C K I N G} \parbox{0.3cm}{\hfill} \textbf{L I S T}
  62. \hfill
  63. \vspace{1cm}
  64. \begin{tabularx}{\textwidth}{*{7}{|X}|} \hline
  65. \textbf{Invoice \#} & \textbf{Order \#} & \textbf{Date} & \textbf{Contact}
  66. <?lsmb IF warehouse ?>
  67. & \textbf{Warehouse}
  68. <?lsmb END ?>
  69. & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em]
  70. \hline
  71. <?lsmb invnumber ?> & <?lsmb ordnumber ?>
  72. <?lsmb IF shippingdate ?>
  73. & <?lsmb shippingdate ?>
  74. <?lsmb ELSE ?>
  75. & <?lsmb transdate ?>
  76. <?lsmb END shippingdate ?>
  77. & <?lsmb employee ?>
  78. <?lsmb IF warehouse ?>
  79. & <?lsmb warehouse ?>
  80. <?lsmb END ?>
  81. & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  82. \hline
  83. \end{tabularx}
  84. \vspace{1cm}
  85. \begin{tabularx}{\textwidth}{@{}rlXllrrl@{}}
  86. \textbf{Item} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Ship} & \\
  87. <?lsmb FOREACH number ?>
  88. <?lsmb lc = loop.count - 1 ?>
  89. <?lsmb runningnumber.${lc} ?> &
  90. <?lsmb number.${lc} ?> &
  91. <?lsmb description.${lc} ?> &
  92. <?lsmb serialnumber.${lc} ?> &
  93. <?lsmb deliverydate.${lc} ?> &
  94. <?lsmb qty.${lc} ?> &
  95. <?lsmb ship.${lc} ?> &
  96. <?lsmb unit.${lc} ?> \\
  97. <?lsmb END ?>
  98. \end{tabularx}
  99. \parbox{\textwidth}{
  100. \rule{\textwidth}{2pt}
  101. \vspace{12pt}
  102. <?lsmb notes ?>
  103. }
  104. \vfill
  105. \rule{\textwidth}{0.5pt}
  106. \usebox{\ftr}
  107. \end{document}
  108. <?lsmb END ?>