so Search.tsf and Search.rdf work
[freeside.git] / sql-ledger / templates / Default-sales_quotation.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage{graphicx}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-1.9cm}
7 \setlength{\topmargin}{0cm}
8 \setlength{\headheight}{0.5cm}
9 \setlength{\headsep}{1cm}
10 \setlength{\topskip}{0pt}
11 \setlength{\oddsidemargin}{1.0cm}
12 \setlength{\evensidemargin}{1.0cm}
13 \setlength{\textwidth}{19.2cm}
14 \setlength{\textheight}{24.7cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
18 \begin{document}
19
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
22
23 \pagestyle{myheadings}
24 \thispagestyle{empty}
25
26 \vspace*{-1.3cm}
27
28 \parbox{\textwidth}{
29   \parbox[b]{.42\textwidth}{
30     <%company%>
31     
32     <%address%>
33   }
34   \parbox[b]{.2\textwidth}{
35     \includegraphics[scale=0.3]{sql-ledger}
36   }\hfill
37   \begin{tabular}[b]{rr@{}}
38   Telephone & <%tel%>\\
39   Facsimile & <%fax%>
40   \end{tabular}
41
42   \rule[1.5ex]{\textwidth}{0.5pt}
43 }
44
45
46 <%pagebreak 90 27 48%>
47 \end{tabular*}
48
49   \rule{\textwidth}{2pt}
50   
51   \hfill
52   \begin{tabularx}{7cm}{Xr@{}}
53   \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
54   \end{tabularx}
55
56 \newpage
57
58 \markboth{<%company%>\hfill <%quonumber%>}{<%company%>\hfill <%quonumber%>}
59
60 \vspace*{-12pt}
61
62 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
63   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
64     \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
65   & carried forward from <%lastpage%> & & & & & <%sumcarriedforward%> \\
66 <%end pagebreak%>
67
68
69 \vspace*{0.5cm}
70
71 \parbox[t]{1cm}{\hfill}
72 \parbox[t]{.45\textwidth}{
73
74 <%name%>
75
76 <%address1%>
77
78 <%address2%>
79
80 <%city%> <%state%> <%zipcode%>
81
82 <%country%>
83
84 \vspace{0.3cm}
85
86 <%contact%>
87
88 \vspace{0.2cm}
89
90 <%if customerphone%>
91 Tel: <%customerphone%>
92 <%end customerphone%>
93
94 <%if customerfax%>
95 Fax: <%customerfax%>
96 <%end customerfax%>
97
98 <%email%>
99 }
100
101 \vspace{1cm}
102
103 \textbf{Q U O T A T I O N}
104 \hfill
105
106 \vspace{1cm}
107
108 \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
109   \textbf{Quotation \#} & \textbf{Date} & \textbf{Valid until} & \textbf{Contact} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5ex]
110   \hline
111   <%quonumber%> & <%quodate%> & <%reqdate%> & <%employee%> & <%shippingpoint%> & <%shipvia%> \\
112   \hline
113 \end{tabularx}
114   
115 \vspace{1cm}
116
117 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
118   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
119     \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\
120 <%foreach number%>
121   <%number%> & <%description%> & <%qty%> &
122     <%unit%> & <%sellprice%> & <%discountrate%> & <%linetotal%> \\
123 <%end number%>
124 \end{tabular*}
125
126
127 \parbox{\textwidth}{
128 \rule{\textwidth}{2pt}
129
130 \vspace{0.2cm}
131
132 \hfill
133 \begin{tabularx}{7cm}{Xr@{}}
134   Subtotal & <%subtotal%> \\
135 <%foreach tax%>
136   <%taxdescription%> on <%taxbase%> & <%tax%>\\
137 <%end tax%>
138   \hline
139   Total & <%quototal%>\\
140 \end{tabularx}
141
142 \vspace{0.3cm}
143
144 \hfill
145   All prices in \textbf{<%currency%>}.
146
147 \vspace{12pt}
148
149 <%notes%>
150
151 }
152
153 \vfill
154
155 \end{document}
156
157