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