allow payment modification so we can import order_number info
[freeside.git] / sql-ledger / templates / Default-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}{@{}lp{\descrwidth}@{\extracolsep\fill}rll@{}}
57   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
58     \textbf{Unit} & \textbf{Bin} \\
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}{@{}lp{\descrwidth}@{\extracolsep\fill}rll@{}}
90   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
91     \textbf{Unit} & \textbf{Bin} \\
92 <%foreach number%>
93   <%number%> & <%description%> & <%qty%> &
94     <%unit%> & <%bin%> \\
95 <%end number%>
96 \end{tabular*}
97
98
99 \parbox{\textwidth}{
100 \rule{\textwidth}{2pt}
101
102 \vspace{12pt}
103
104 <%if notes%>
105   <%notes%>
106 <%end if%>
107
108 }
109
110 \vfill
111 \centerline{\textbf{Thank You for your valued business!}}
112
113 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
114
115 \footnotetext[1]{\tiny
116 Items returned are subject to a 10\% restocking charge.
117 A return authorization must be obtained from <%company%> before goods are
118 returned. Returns must be shipped prepaid and properly insured.
119 <%company%> will not be responsible for damages during transit.}
120
121 \end{document}
122