summaryrefslogtreecommitdiff
path: root/templates/demo/sales_quotation.tex
blob: 43a9fdfc303aadf3eb5b137f7885cfc8f475cb64 (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. \newsavebox{\ftr}
  11. \sbox{\ftr}{
  12.   \parbox{\textwidth}{
  13. \tiny
  14. \rule[1.5em]{\textwidth}{0.5pt}
  15. Special order items are subject to a 10\% cancellation fee.
  16. }
  17. }
  18. <?lsmb INCLUDE letterhead.tex ?>
  19. % Breaking old pagebreak directive
  20. %<?xlsmb pagebreak 65 27 48 ?>
  21. %\end{tabularx}
  22. %
  23. % \rule{\textwidth}{2pt}
  24. %
  25. % \hfill
  26. % \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  27. % & \textbf{Subtotal} & \textbf{<?xlsmb sumcarriedforward ?>} \\
  28. % \end{tabularx}
  29. %
  30. %\newpage
  31. %
  32. %\markboth{<?xlsmb company ?>\hfill <?xlsmb quonumber ?>}{<?xlsmb company ?>\hfill <?xlsmb quonumber ?>}
  33. %
  34. %\begin{tabularx}{\textwidth}{@{}lXrlrrr@{}}
  35. % \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  36. % \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
  37. % & carried forward from <?xlsmb lastpage ?> & & & & & <?xlsmb sumcarriedforward ?> \\
  38. %<?xlsmb end pagebreak ?>
  39. \vspace*{0.5cm}
  40. \parbox[t]{.5\textwidth}{
  41. <?lsmb name ?>
  42. <?lsmb address1 ?>
  43. <?lsmb address2 ?>
  44. <?lsmb city ?>
  45. <?lsmb IF state ?>
  46. \hspace{-0.1cm}, <?lsmb state ?>
  47. <?lsmb END ?>
  48. <?lsmb zipcode ?>
  49. <?lsmb country ?>
  50. \vspace{0.3cm}
  51. <?lsmb IF contact ?>
  52. <?lsmb contact ?>
  53. \vspace{0.2cm}
  54. <?lsmb END ?>
  55. <?lsmb IF customerphone ?>
  56. Tel: <?lsmb customerphone ?>
  57. <?lsmb END ?>
  58. <?lsmb IF customerfax ?>
  59. Fax: <?lsmb customerfax ?>
  60. <?lsmb END ?>
  61. <?lsmb email ?>
  62. }
  63. \vspace{1cm}
  64. \textbf{Q U O T A T I O N}
  65. \hfill
  66. \vspace{1cm}
  67. \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
  68. \textbf{Quotation \#} & \textbf{Date} & \textbf{Valid until} & \textbf{Contact} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5ex]
  69. \hline
  70. <?lsmb quonumber ?> & <?lsmb quodate ?> & <?lsmb reqdate ?> & <?lsmb employee ?> & <?lsmb shippingpoint ?> & <?lsmb shipvia ?> \\
  71. \hline
  72. \end{tabularx}
  73. \vspace{1cm}
  74. \begin{tabularx}{\textwidth}{@{}lXrlrrr@{}}
  75. \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
  76. \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
  77. <?lsmb FOREACH number ?>
  78. <?lsmb lc = loop.count - 1 ?>
  79. <?lsmb number.${lc} ?> &
  80. <?lsmb description.${lc} ?> &
  81. <?lsmb qty.${lc} ?> &
  82. <?lsmb unit.${lc} ?> &
  83. <?lsmb sellprice.${lc} ?> &
  84. <?lsmb discountrate.${lc} ?> &
  85. <?lsmb linetotal.${lc} ?> \\
  86. <?lsmb END ?>
  87. \end{tabularx}
  88. \parbox{\textwidth}{
  89. \rule{\textwidth}{2pt}
  90. \vspace{0.2cm}
  91. \hfill
  92. \begin{tabularx}{7cm}{Xr@{\hspace{1cm}}r@{}}
  93. & Subtotal & <?lsmb subtotal ?> \\
  94. <?lsmb FOREACH tax ?>
  95. <?lsmb lc = loop.count - 1 ?>
  96. & <?lsmb taxdescription.${lc} ?> on <?lsmb taxbase.${lc} ?> & <?lsmb tax.${lc} ?>\\
  97. <?lsmb END ?>
  98. \hline
  99. & Total & <?lsmb quototal ?>\\
  100. \end{tabularx}
  101. \vspace{0.3cm}
  102. \hfill
  103. All prices in \textbf{<?lsmb currency ?>}.
  104. <?lsmb IF terms ?>
  105. Terms: <?lsmb terms ?> days
  106. <?lsmb END ?>
  107. \vspace{12pt}
  108. <?lsmb notes ?>
  109. }
  110. \vfill
  111. \hfill \parbox{7cm}{X \rule{6.5cm}{0.5pt}}
  112. \rule{\textwidth}{0.5pt}
  113. \usebox{\ftr}
  114. \end{document}