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