can't set $p without $cgi
[freeside.git] / sql-ledger / old / sql-ledger / templates / Service-packing_list.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[latin1]{inputenc}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-2.0cm}
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.5cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
18 \begin{document}
19
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21
22 \newsavebox{\hdr}
23 \sbox{\hdr}{
24   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
25
26   \parbox{\textwidth}{
27     \parbox[b]{12cm}{
28       <%company%>
29       
30       <%address%>}\hfill
31     \begin{tabular}[b]{rr@{}}
32     Telephone & <%tel%>\\
33     Facsimile & <%fax%>
34     \end{tabular}
35
36     \rule[1.5ex]{\textwidth}{0.5pt}
37   }
38 }
39     
40 \fontfamily{cmss}\fontshape{n}\selectfont
41
42 \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 <%pagebreak 90 27 48%>
48 \end{tabular*}
49
50 \newpage
51
52 \markright{<%company%>\hfill <%invnumber%>}
53
54 \vspace*{-12pt}
55
56 \begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rl@{}}
57   \textbf{Description} & \textbf{Qt'y} &
58     \textbf{Unit} \\
59 <%end pagebreak%>
60
61
62 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
63
64 \vspace*{2cm}
65
66 <%shiptoname%>
67
68 <%shiptoaddr1%>
69
70 <%shiptoaddr2%>
71
72 <%shiptoaddr3%>
73
74 <%shiptoaddr4%>
75
76 \vspace{3.5cm}
77
78 \textbf{P A C K I N G} \parbox{0.3cm}{\hfill} \textbf{L I S T}
79
80 \hfill
81 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
82   \textbf{Date} & <%invdate%> \\
83   \textbf{Number} & <%invnumber%> \\
84   \textbf{Customer} & <%customer_id%>
85 \end{tabular}
86
87 \vspace{1cm}
88
89 \begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rl@{}}
90   \textbf{Description} & \textbf{Qt'y} & \textbf{Unit} \\
91 <%foreach number%>
92   <%description%> & <%qty%> & <%unit%> \\
93 <%end number%>
94 \end{tabular*}
95
96
97 \parbox{\textwidth}{
98 \rule{\textwidth}{2pt}
99
100 \vspace{12pt}
101
102 <%if notes%>
103   <%notes%>
104 <%end if%>
105
106 }
107
108 %\vfill
109 %\centerline{\textbf{Thank You for your valued business!}}
110
111 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
112
113 %\footnotetext[1]{\tiny
114 %Items returned are subject to a 10\% restocking charge.
115 %A return authorization must be obtained from <%company%> before goods are
116 %returned. Returns must be shipped prepaid and properly insured.
117 %<%company%> will not be responsible for damages during transit.}
118
119 \end{document}
120