Revision d4a434e1
Von Bernd Blessmann vor etwa 13 Jahren hinzugefügt
bin/mozilla/admin.pl | ||
---|---|---|
431 | 431 |
closedir TEMPLATEDIR; |
432 | 432 |
|
433 | 433 |
@alldir = grep !/\.(html|tex|sty|odt|xml|txb)$/, @alldir; |
434 |
@alldir = grep !/^(webpages|mastertemplates|\.svn)$/, @alldir;
|
|
434 |
@alldir = grep !/^(webpages|print|\.svn)$/, @alldir;
|
|
435 | 435 |
|
436 | 436 |
$form->{ALL_TEMPLATES} = [ map { { "name", => $_, "selected" => $_ eq $myconfig->{templates} } } @alldir ]; |
437 | 437 |
|
438 | 438 |
# mastertemplates |
439 |
opendir TEMPLATEDIR, "$::lx_office_conf{paths}->{templates}/mastertemplates" or $form->error("$::lx_office_conf{paths}->{templates}/mastertemplates" . " : $ERRNO");
|
|
439 |
opendir TEMPLATEDIR, "$::lx_office_conf{paths}->{templates}/print" or $form->error("$::lx_office_conf{paths}->{templates}/print" . " : $ERRNO");
|
|
440 | 440 |
my @allmaster = readdir(TEMPLATEDIR); |
441 | 441 |
closedir TEMPLATEDIR; |
442 | 442 |
|
443 |
@allmaster = sort grep { -d ("$::lx_office_conf{paths}->{templates}/mastertemplates" . "/$_") && !/^\.\.?$/ } @allmaster;
|
|
443 |
@allmaster = sort grep { -d ("$::lx_office_conf{paths}->{templates}/print" . "/$_") && !/^\.\.?$/ } @allmaster;
|
|
444 | 444 |
@allmaster = reverse grep !/Default/, @allmaster; |
445 | 445 |
push @allmaster, 'Default'; |
446 | 446 |
@allmaster = reverse @allmaster; |
... | ... | |
544 | 544 |
# copy templates to the directory |
545 | 545 |
|
546 | 546 |
my $oldcurrdir = getcwd(); |
547 |
if (!chdir("$::lx_office_conf{paths}->{templates}/mastertemplates/$form->{mastertemplates}")) {
|
|
548 |
$form->error("$ERRNO: chdir $::lx_office_conf{paths}->{templates}/mastertemplates/$form->{mastertemplates}");
|
|
547 |
if (!chdir("$::lx_office_conf{paths}->{templates}/print/$form->{mastertemplates}")) {
|
|
548 |
$form->error("$ERRNO: chdir $::lx_office_conf{paths}->{templates}/print/$form->{mastertemplates}");
|
|
549 | 549 |
} |
550 | 550 |
|
551 | 551 |
my $newdir = File::Spec->catdir($oldcurrdir, $form->{templates}); |
templates/mastertemplates/Default/balance_sheet.html | ||
---|---|---|
1 |
|
|
2 |
<body bgcolor=ffffff> |
|
3 |
|
|
4 |
<h2 align=center> |
|
5 |
<%company%> |
|
6 |
<br><%address%> |
|
7 |
|
|
8 |
<p>BALANCE SHEET |
|
9 |
<br><%period%> |
|
10 |
</h2> |
|
11 |
|
|
12 |
<table border=0> |
|
13 |
<tr> |
|
14 |
<th align=left width=400 colspan=2>ASSETS<br><hr align=left width=250 size=5 noshade></th> |
|
15 |
<th><%this_period%></th> |
|
16 |
<th><%last_period%></th> |
|
17 |
</tr> |
|
18 |
|
|
19 |
<%foreach asset_account%> |
|
20 |
<tr> |
|
21 |
<td> </td> |
|
22 |
<td><%asset_account%></td> |
|
23 |
<td align=right><%asset_this_period%></td> |
|
24 |
<td align=right><%asset_last_period%></td> |
|
25 |
</tr> |
|
26 |
<%end asset_account%> |
|
27 |
|
|
28 |
<tr> |
|
29 |
<td colspan=2> </td> |
|
30 |
<td><hr noshade size=1></td> |
|
31 |
<td><hr noshade size=1></td> |
|
32 |
</tr> |
|
33 |
|
|
34 |
<tr valign=top> |
|
35 |
<th align=left colspan=2>TOTAL ASSETS</th> |
|
36 |
<td align=right><%total_assets_this_period%><hr noshade size=2></td> |
|
37 |
<td align=right><%total_assets_last_period%><hr noshade size=2></td> |
|
38 |
</tr> |
|
39 |
|
|
40 |
<tr> |
|
41 |
<th align=left colspan=4>LIABILITIES<b><hr align=left width=250 size=5 noshade></th> |
|
42 |
</tr> |
|
43 |
|
|
44 |
<%foreach liability_account%> |
|
45 |
<tr> |
|
46 |
<td></td> |
|
47 |
<td><%liability_account%></td> |
|
48 |
<td align=right><%liability_this_period%></td> |
|
49 |
<td align=right><%liability_last_period%></td> |
|
50 |
</tr> |
|
51 |
<%end liability_account%> |
|
52 |
|
|
53 |
<tr> |
|
54 |
<td colspan=2> </td> |
|
55 |
<td><hr noshade size=1></td> |
|
56 |
<td><hr noshade size=1></td> |
|
57 |
</tr> |
|
58 |
|
|
59 |
<tr valign=top> |
|
60 |
<td></td> |
|
61 |
<th align=left>Total Liabilities</th> |
|
62 |
<td align=right><%total_liabilities_this_period%><br><hr noshade size=2</td> |
|
63 |
<td align=right><%total_liabilities_last_period%><br><hr noshade size=2</td> |
|
64 |
</tr> |
|
65 |
|
|
66 |
<tr> |
|
67 |
<th align=left colspan=4>SHAREHOLDER'S EQUITY<br><hr align=left width=250 size=5 noshade></th> |
|
68 |
</tr> |
|
69 |
|
|
70 |
<%foreach equity_account%> |
|
71 |
<tr> |
|
72 |
<td></td> |
|
73 |
<td><%equity_account%></td> |
|
74 |
<td align=right><%equity_this_period%></td> |
|
75 |
<td align=right><%equity_last_period%></td> |
|
76 |
</tr> |
|
77 |
<%end equity_account%> |
|
78 |
|
|
79 |
<tr> |
|
80 |
<td colspan=2> </td> |
|
81 |
<td><hr noshade size=1></td> |
|
82 |
<td><hr noshade size=1></td> |
|
83 |
</tr> |
|
84 |
|
|
85 |
<tr valign=top> |
|
86 |
<td></td> |
|
87 |
<th align=left>Total Equity</th> |
|
88 |
<td align=right><%total_equity_this_period%><br><hr noshade size=2</td> |
|
89 |
<td align=right><%total_equity_last_period%><br><hr noshade size=2</td> |
|
90 |
</tr> |
|
91 |
|
|
92 |
<tr valign=top> |
|
93 |
<th align=left colspan=2>TOTAL LIABILITIES & EQUITY</th> |
|
94 |
<td align=right><%total_this_period%><br><hr noshade size=2></td> |
|
95 |
<td align=right><%total_last_period%><br><hr noshade size=2></td> |
|
96 |
</tr> |
|
97 |
</table> |
|
98 |
|
|
99 |
|
|
100 |
|
templates/mastertemplates/Default/bin_list.html | ||
---|---|---|
1 |
|
|
2 |
<body bgcolor=ffffff> |
|
3 |
|
|
4 |
<table width=100%> |
|
5 |
<tr> |
|
6 |
<td width=10> </td> |
|
7 |
|
|
8 |
<td> |
|
9 |
<table width=100%> |
|
10 |
<tr> |
|
11 |
<td> |
|
12 |
<h4> |
|
13 |
<%company%> |
|
14 |
<br><%address%> |
|
15 |
</h4> |
|
16 |
</td> |
|
17 |
|
|
18 |
<th><img src=http://localhost/lx-erp/lx-office-erp.png border=0 width=64 height=58></th> |
|
19 |
|
|
20 |
<th align=right> |
|
21 |
<h4> |
|
22 |
Tel: <%tel%> |
|
23 |
<br>Fax: <%fax%> |
|
24 |
</h4> |
|
25 |
</td> |
|
26 |
</tr> |
|
27 |
|
|
28 |
<tr> |
|
29 |
<th colspan=3> |
|
30 |
<h4>B I N L I S T</h4> |
|
31 |
</th> |
|
32 |
</tr> |
|
33 |
</table> |
|
34 |
</td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<td> </td> |
|
39 |
|
|
40 |
<td> |
|
41 |
<table width=100% cellspacing=0 cellpadding=0> |
|
42 |
<tr bgcolor=000000> |
|
43 |
<th align=left width=50%><font color=ffffff>From</th> |
|
44 |
<th align=left width=50%><font color=ffffff>Ship To</th> |
|
45 |
</tr> |
|
46 |
|
|
47 |
<tr valign=top> |
|
48 |
<td><%name%> |
|
49 |
<br><%street%> |
|
50 |
<br><%zipcode%> |
|
51 |
<br><%city%> |
|
52 |
<br><%country%> |
|
53 |
<br> |
|
54 |
|
|
55 |
<%if contact%> |
|
56 |
<br>Attn: <%contact%> |
|
57 |
<%end contact%> |
|
58 |
|
|
59 |
<%if vendorphone%> |
|
60 |
<br>Tel: <%vendorphone%> |
|
61 |
<%end vendorphone%> |
|
62 |
|
|
63 |
<%if vendorfax%> |
|
64 |
<br>Fax: <%vendorfax%> |
|
65 |
<%end vendorfax%> |
|
66 |
|
|
67 |
<%if email%> |
|
68 |
<br><%email%> |
|
69 |
<%end email%> |
|
70 |
|
|
71 |
</td> |
|
72 |
|
|
73 |
<td><%shiptoname%> |
|
74 |
<br><%shiptostreet%> |
|
75 |
<br><%shiptozipcode%> |
|
76 |
<br><%shiptocity%> |
|
77 |
<br><%shiptocountry%> |
|
78 |
|
|
79 |
<br> |
|
80 |
<%if shiptocontact%> |
|
81 |
<br>Attn: <%shiptocontact%> |
|
82 |
<%end shiptocontact%> |
|
83 |
|
|
84 |
<%if shiptophone%> |
|
85 |
<br>Tel: <%shiptophone%> |
|
86 |
<%end shiptophone%> |
|
87 |
|
|
88 |
<%if shiptofax%> |
|
89 |
<br>Fax: <%shiptofax%> |
|
90 |
<%end shiptofax%> |
|
91 |
</td> |
|
92 |
</tr> |
|
93 |
</table> |
|
94 |
</td> |
|
95 |
</tr> |
|
96 |
|
|
97 |
<tr height=5></tr> |
|
98 |
|
|
99 |
<tr> |
|
100 |
<td> </td> |
|
101 |
|
|
102 |
<td> |
|
103 |
<table width=100% border=1> |
|
104 |
<tr> |
|
105 |
<th width=17% align=left nowrap>Order #</th> |
|
106 |
<th width=17% align=left nowrap>Date</th> |
|
107 |
<th width=17% align=left nowrap>Contact</th> |
|
108 |
<%if warehouse%> |
|
109 |
<th width=17% align=left nowrap>Warehouse</th> |
|
110 |
<%end warehouse%> |
|
111 |
<th width=17% align=left>Shipping Point</th> |
|
112 |
<th width=15% align=left>Ship via</th> |
|
113 |
</tr> |
|
114 |
|
|
115 |
<tr> |
|
116 |
<td><%ordnumber%> </td> |
|
117 |
|
|
118 |
<%if shippingdate%> |
|
119 |
<td><%shippingdate%></td> |
|
120 |
<%end shippingdate%> |
|
121 |
|
|
122 |
<%if not shippingdate%> |
|
123 |
<td><%orddate%></td> |
|
124 |
<%end shippingdate%> |
|
125 |
|
|
126 |
<td><%employee%> </td> |
|
127 |
|
|
128 |
<%if warehouse%> |
|
129 |
<td><%warehouse%></td> |
|
130 |
<%end warehouse%> |
|
131 |
|
|
132 |
<td><%shippingpoint%> </td> |
|
133 |
<td><%shipvia%> </td> |
|
134 |
</tr> |
|
135 |
</table> |
|
136 |
</td> |
|
137 |
</tr> |
|
138 |
|
|
139 |
<tr> |
|
140 |
<td> </td> |
|
141 |
|
|
142 |
<td> |
|
143 |
<table width=100%> |
|
144 |
<tr bgcolor=000000> |
|
145 |
<th align=left><font color=ffffff>Pos</th> |
|
146 |
<th align=left><font color=ffffff>Number</th> |
|
147 |
<th align=left><font color=ffffff>Description</th> |
|
148 |
<th><font color=ffffff>Serialnumber</th> |
|
149 |
<th> </th> |
|
150 |
<th><font color=ffffff>Qty</th> |
|
151 |
<th><font color=ffffff>Recd</th> |
|
152 |
<th> </th> |
|
153 |
<th><font color=ffffff>Bin</th> |
|
154 |
</tr> |
|
155 |
|
|
156 |
<%foreach number%> |
|
157 |
<tr valign=top> |
|
158 |
<td><%runningnumber%></td> |
|
159 |
<td><%number%></td> |
|
160 |
<td><%description%></td> |
|
161 |
<td><%serialnumber%></td> |
|
162 |
<td><%deliverydate%></td> |
|
163 |
<td align=right><%qty%></td> |
|
164 |
<td align=right><%ship%></td> |
|
165 |
<td><%unit%></td> |
|
166 |
<td><%bin%></td> |
|
167 |
</tr> |
|
168 |
<%end number%> |
|
169 |
|
|
170 |
</table> |
|
171 |
</td> |
|
172 |
</tr> |
|
173 |
|
|
174 |
<tr> |
|
175 |
<td> </td> |
|
176 |
|
|
177 |
<td><hr noshade></td> |
|
178 |
</tr> |
|
179 |
|
|
180 |
</table> |
|
181 |
|
templates/mastertemplates/Default/bin_list.tex | ||
---|---|---|
1 |
\documentclass[twoside]{scrartcl} |
|
2 |
\usepackage[frame]{xy} |
|
3 |
\usepackage{tabularx} |
|
4 |
\usepackage[utf8]{inputenc} |
|
5 |
\usepackage{graphicx} |
|
6 |
\setlength{\voffset}{0.5cm} |
|
7 |
\setlength{\hoffset}{-2.0cm} |
|
8 |
\setlength{\topmargin}{0cm} |
|
9 |
\setlength{\headheight}{0.5cm} |
|
10 |
\setlength{\headsep}{1cm} |
|
11 |
\setlength{\topskip}{0pt} |
|
12 |
\setlength{\oddsidemargin}{1.0cm} |
|
13 |
\setlength{\evensidemargin}{1.0cm} |
|
14 |
\setlength{\textwidth}{19.2cm} |
|
15 |
\setlength{\textheight}{24.7cm} |
|
16 |
\setlength{\footskip}{1cm} |
|
17 |
\setlength{\parindent}{0pt} |
|
18 |
\renewcommand{\baselinestretch}{1} |
|
19 |
|
|
20 |
\begin{document} |
|
21 |
|
|
22 |
\pagestyle{myheadings} |
|
23 |
\thispagestyle{empty} |
|
24 |
|
|
25 |
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont |
|
26 |
|
|
27 |
\vspace*{-1.3cm} |
|
28 |
|
|
29 |
\parbox{\textwidth}{ |
|
30 |
\parbox[b]{.42\textwidth}{% |
|
31 |
<%company%> |
|
32 |
|
|
33 |
<%address%> |
|
34 |
}\hfill |
|
35 |
\begin{tabular}[b]{rr@{}} |
|
36 |
Telephone & <%tel%>\\ |
|
37 |
Facsimile & <%fax%> |
|
38 |
\end{tabular} |
|
39 |
|
|
40 |
\rule[1.5ex]{\textwidth}{0.5pt} |
|
41 |
} |
|
42 |
|
|
43 |
|
|
44 |
<%pagebreak 90 27 37%> |
|
45 |
\end{tabularx} |
|
46 |
|
|
47 |
\newpage |
|
48 |
|
|
49 |
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>} |
|
50 |
|
|
51 |
\vspace*{-12pt} |
|
52 |
|
|
53 |
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}} |
|
54 |
\textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\ |
|
55 |
<%end pagebreak%> |
|
56 |
|
|
57 |
|
|
58 |
\vspace*{0.5cm} |
|
59 |
|
|
60 |
\parbox[t]{1cm}{\hfill} |
|
61 |
\parbox[t]{.5\textwidth}{ |
|
62 |
\textbf{From} |
|
63 |
\vspace{0.7cm} |
|
64 |
|
|
65 |
<%name%> \\ |
|
66 |
<%street%> \\ |
|
67 |
<%zipcode%> \\ |
|
68 |
<%city%> \\ |
|
69 |
<%country%> |
|
70 |
} |
|
71 |
\parbox[t]{.4\textwidth}{ |
|
72 |
\textbf{Ship To} |
|
73 |
\vspace{0.7cm} |
|
74 |
|
|
75 |
<%shiptoname%> \\ |
|
76 |
<%shiptostreet%> \\ |
|
77 |
<%shiptozipcode%> \\ |
|
78 |
<%shiptocity%> \\ |
|
79 |
<%shiptocountry%> |
|
80 |
} |
|
81 |
\hfill |
|
82 |
|
|
83 |
\vspace{1cm} |
|
84 |
|
|
85 |
\textbf{B I N} \parbox{0.3cm}{\hfill} \textbf{L I S T} |
|
86 |
\hfill |
|
87 |
|
|
88 |
\vspace{1cm} |
|
89 |
|
|
90 |
\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline |
|
91 |
\textbf{Order \#} & \textbf{Date} & \textbf{Contact} |
|
92 |
<%if warehouse%> |
|
93 |
& \textbf{Warehouse} |
|
94 |
<%end warehouse%> |
|
95 |
& \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em] |
|
96 |
\hline |
|
97 |
|
|
98 |
<%ordnumber%> |
|
99 |
<%if shippingdate%> |
|
100 |
& <%shippingdate%> |
|
101 |
<%end shippingdate%> |
|
102 |
<%if not shippingdate%> |
|
103 |
& <%orddate%> |
|
104 |
<%end shippingdate%> |
|
105 |
& <%employee%> |
|
106 |
<%if warehouse%> |
|
107 |
& <%warehouse%> |
|
108 |
<%end warehouse%> |
|
109 |
& <%shippingpoint%> & <%shipvia%> \\ |
|
110 |
\hline |
|
111 |
\end{tabularx} |
|
112 |
|
|
113 |
\vspace{1cm} |
|
114 |
|
|
115 |
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}} |
|
116 |
\textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\ |
|
117 |
|
|
118 |
<%foreach number%> |
|
119 |
<%runningnumber%> & <%number%> & <%description%> & <%serialnumber%> & |
|
120 |
<%deliverydate%> & <%qty%> & <%ship%> & <%unit%> & <%bin%> \\ |
|
121 |
<%end number%> |
|
122 |
\end{tabularx} |
|
123 |
|
|
124 |
|
|
125 |
\rule{\textwidth}{2pt} |
|
126 |
|
|
127 |
\end{document} |
|
128 |
|
templates/mastertemplates/Default/check.tex | ||
---|---|---|
1 |
\documentclass[twoside]{scrartcl} |
|
2 |
\usepackage[frame]{xy} |
|
3 |
\usepackage{tabularx} |
|
4 |
\usepackage[utf8]{inputenc} |
|
5 |
\setlength{\voffset}{0.4cm} |
|
6 |
\setlength{\hoffset}{-2.0cm} |
|
7 |
\setlength{\topmargin}{0cm} |
|
8 |
\setlength{\headheight}{0.0cm} |
|
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 |
|
|
21 |
\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont |
|
22 |
|
|
23 |
\parbox[t]{12cm}{ |
|
24 |
<%company%> |
|
25 |
|
|
26 |
<%address%>} |
|
27 |
\hfill |
|
28 |
\parbox[t]{6cm}{\hfill <%source%>} |
|
29 |
|
|
30 |
\vspace*{0.6cm} |
|
31 |
|
|
32 |
<%text_amount%> \dotfill <%decimal%>/100 \makebox[0.5cm]{\hfill} |
|
33 |
|
|
34 |
\vspace{0.5cm} |
|
35 |
|
|
36 |
\hfill <%datepaid%> \makebox[2cm]{\hfill} <%amount%> |
|
37 |
|
|
38 |
\vspace{0.5cm} |
|
39 |
|
|
40 |
<%name%> |
|
41 |
|
|
42 |
<%street%> |
|
43 |
|
|
44 |
<%zipcode%> |
|
45 |
|
|
46 |
<%city%> |
|
47 |
|
|
48 |
<%country%> |
|
49 |
|
|
50 |
\vspace{2.8cm} |
|
51 |
|
|
52 |
<%company%> |
|
53 |
|
|
54 |
\vspace{0.5cm} |
|
55 |
|
|
56 |
<%name%> \hfill <%datepaid%> \hfill <%source%> |
|
57 |
|
|
58 |
\vspace{0.5cm} |
|
59 |
\begin{tabularx}{\textwidth}{lXrr@{}} |
|
60 |
\textbf{Invoice No.} & \textbf{Invoice Date} |
|
61 |
& \textbf{Due} & \textbf{Applied} \\ |
|
62 |
<%foreach invnumber%> |
|
63 |
<%invnumber%> & <%invdate%> \dotfill |
|
64 |
& <%due%> & <%paid%> \\ |
|
65 |
<%end invnumber%> |
|
66 |
\end{tabularx} |
|
67 |
|
|
68 |
\vfill |
|
69 |
|
|
70 |
\end{document} |
|
71 |
|
templates/mastertemplates/Default/income_statement.html | ||
---|---|---|
1 |
|
|
2 |
<body bgcolor=ffffff> |
|
3 |
|
|
4 |
<h2 align=center> |
|
5 |
<%company%> |
|
6 |
<br><%address%> |
|
7 |
|
|
8 |
<p>INCOME STATEMENT |
|
9 |
<br><%period%> |
|
10 |
</h2> |
|
11 |
|
|
12 |
|
|
13 |
<table width=100% border=0> |
|
14 |
<tr> |
|
15 |
<th width=400 align=left colspan=2>INCOME<br><hr width=300 size=5 align=left noshade></th> |
|
16 |
<th><%this_period%></th> |
|
17 |
<th><%last_period%></th> |
|
18 |
</tr> |
|
19 |
|
|
20 |
<%foreach income_account%> |
|
21 |
<tr> |
|
22 |
<td width=4> </td> |
|
23 |
<td><%income_account%></td> |
|
24 |
<td align=right><%income_this_period%></td> |
|
25 |
<td align=right><%income_last_period%></td> |
|
26 |
</tr> |
|
27 |
<%end income_account%> |
|
28 |
|
|
29 |
<tr> |
|
30 |
<td colspan=2> </td> |
|
31 |
<td><hr noshade size=1></td> |
|
32 |
<td><hr noshade size=1></td> |
|
33 |
</tr> |
|
34 |
|
|
35 |
<tr valign=top> |
|
36 |
<td> </td> |
|
37 |
<th align=left>Total Income</th> |
|
38 |
<td align=right><%total_income_this_period%><hr noshade size=2></td> |
|
39 |
<td align=right><%total_income_last_period%><hr noshade size=2></td> |
|
40 |
</tr> |
|
41 |
|
|
42 |
<tr> |
|
43 |
<th align=left colspan=2>EXPENSES<br><hr width=300 size=5 align=left noshade></th> |
|
44 |
</tr> |
|
45 |
|
|
46 |
<%foreach expense_account%> |
|
47 |
<tr> |
|
48 |
<td> </td> |
|
49 |
<td><%expense_account%></td> |
|
50 |
<td align=right><%expenses_this_period%></td> |
|
51 |
<td align=right><%expenses_last_period%></td> |
|
52 |
</tr> |
|
53 |
<%end expense_account%> |
|
54 |
|
|
55 |
<tr> |
|
56 |
<td colspan=2> </td> |
|
57 |
<td><hr noshade size=1></td> |
|
58 |
<td><hr noshade size=1></td> |
|
59 |
</tr> |
|
60 |
|
|
61 |
<tr valign=top> |
|
62 |
<td> </td> |
|
63 |
<th align=left>Total Expenses</th> |
|
64 |
<td align=right><%total_expenses_this_period%><br><hr noshade size=2</td> |
|
65 |
<td align=right><%total_expenses_last_period%><br><hr noshade size=2</td> |
|
66 |
</tr> |
|
67 |
|
|
68 |
<tr valign=top> |
|
69 |
<th align=left colspan=2>INCOME / (LOSS)</th> |
|
70 |
<td align=right><%total_this_period%><br><hr noshade size=2></td> |
|
71 |
<td align=right><%total_last_period%><br><hr noshade size=2></td> |
|
72 |
</tr> |
|
73 |
|
|
74 |
</table> |
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
templates/mastertemplates/Default/invoice.html | ||
---|---|---|
1 |
|
|
2 |
<body bgcolor=ffffff> |
|
3 |
|
|
4 |
<table width=100%> |
|
5 |
<tr valign=bottom> |
|
6 |
<td width=10> </td> |
|
7 |
<td> |
|
8 |
|
|
9 |
<table width=100%> |
|
10 |
<tr> |
|
11 |
<td> |
|
12 |
<h4> |
|
13 |
<%company%> |
|
14 |
<br><%address%> |
|
15 |
</h4> |
|
16 |
</td> |
|
17 |
|
|
18 |
<td align=right> |
|
19 |
<h4> |
|
20 |
Telephone: <%tel%> |
|
21 |
<br>Facsimile: <%fax%> |
|
22 |
</h4> |
|
23 |
</td> |
|
24 |
</tr> |
|
25 |
|
|
26 |
<tr> |
|
27 |
<th colspan=3> |
|
28 |
<h4>I N V O I C E</h4> |
|
29 |
</th> |
|
30 |
</tr> |
|
31 |
|
|
32 |
</table> |
|
33 |
|
|
34 |
|
|
35 |
<table width=100% callspacing=0 cellpadding=0> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<td align=right> |
|
39 |
<table> |
|
40 |
<tr> |
|
41 |
<th align=right>Invoice Date</th><td width=10> </td><td><%invdate%></td> |
|
42 |
</tr> |
|
43 |
|
|
44 |
<tr> |
|
45 |
<th align=right>Due Date</th><td width=10> </td><td><%duedate%></td> |
|
46 |
</tr> |
|
47 |
|
|
48 |
<tr> |
|
49 |
<th align=right>Number</th><td> </td><td><%invnumber%></td></tr> |
|
50 |
</tr> |
|
51 |
|
|
52 |
<!-- |
|
53 |
<tr> |
|
54 |
<th align=right>Clerk:</th><td> </td><td><%employee%></td> |
|
55 |
</tr> |
|
56 |
--> |
|
57 |
|
|
58 |
<tr> |
|
59 |
<td> </td> |
|
60 |
</tr> |
|
61 |
</td> |
|
62 |
</table> |
|
63 |
</tr> |
|
64 |
|
|
65 |
<tr> |
|
66 |
<td> |
|
67 |
<table width=100%> |
|
68 |
<tr bgcolor=000000> |
|
69 |
<th align=left><font color=ffffff>To:</th> |
|
70 |
<th align=left><font color=ffffff>Ship To:</th> |
|
71 |
</tr> |
|
72 |
|
|
73 |
<!-- |
|
74 |
other variables which can be use: |
|
75 |
contact, shiptocontact, shiptophone, shiptofax |
|
76 |
--> |
|
77 |
|
|
78 |
<tr valign=top> |
|
79 |
<td><%name%> |
|
80 |
<br><%street%> |
|
81 |
<br><%zipcode%> |
|
82 |
<br><%city%> |
|
83 |
<br><%country%> |
|
84 |
</td> |
|
85 |
|
|
86 |
<td><%shiptoname%> |
|
87 |
<br><%shiptostreet%> |
|
88 |
<br><%shiptozipcode%> |
|
89 |
<br><%shiptocity%> |
|
90 |
<br><%shiptocountry%> |
|
91 |
</td> |
|
92 |
</tr> |
|
93 |
</table> |
|
94 |
</td> |
|
95 |
</tr> |
|
96 |
|
|
97 |
<tr> |
|
98 |
<td> </td> |
|
99 |
</tr> |
|
100 |
|
|
101 |
<tr> |
|
102 |
<td> |
|
103 |
<table width=100%> |
|
104 |
<tr bgcolor=000000> |
|
105 |
<!-- <th align=right><font color=ffffff>No.</th> --> |
|
106 |
<th align=left><font color=ffffff>Number</th> |
|
107 |
<th align=left><font color=ffffff>Description</th> |
|
108 |
<th><font color=ffffff>Qt'y</th> |
|
109 |
<th> </th> |
|
110 |
<th><font color=ffffff>Price</th> |
|
111 |
<th><font color=ffffff>Disc</th> |
|
112 |
<th><font color=ffffff>Amount</th> |
|
113 |
</tr> |
|
114 |
|
|
115 |
<%foreach number%> |
|
116 |
<tr valign=top> |
|
117 |
<!-- <td align=right><%runningnumber%>.</td> |
|
118 |
adjust the colspan if you include this to shift subtotal one to the right |
|
119 |
--> |
|
120 |
<td><%number%></td> |
|
121 |
<td><%description%></td> |
|
122 |
<td align=right><%qty%></td> |
|
123 |
<td><%unit%></td> |
|
124 |
<td align=right><%sellprice%></td> |
|
125 |
<td align=right><%discount%></td> |
|
126 |
<td align=right><%linetotal%></td> |
|
127 |
</tr> |
|
128 |
<%end number%> |
|
129 |
|
|
130 |
<!-- |
|
131 |
you can also use netprice instead of sellprice if you |
|
132 |
don't want to show the discount |
|
133 |
netprice = sellprice - discount |
|
134 |
--> |
|
135 |
|
|
136 |
<tr> |
|
137 |
<td colspan=7><hr noshade></td> |
|
138 |
</tr> |
|
139 |
|
|
140 |
<tr> |
|
141 |
<%if taxincluded%> |
|
142 |
<th colspan=5 align=right>Total</th> |
|
143 |
<td colspan=2 align=right><%invtotal%></td> |
|
144 |
<%end taxincluded%> |
|
145 |
<%if not taxincluded%> |
|
146 |
<th colspan=5 align=right>Subtotal</th> |
|
147 |
<td colspan=2 align=right><%subtotal%></td> |
|
148 |
<%end taxincluded%> |
|
149 |
</tr> |
|
150 |
|
|
151 |
<%foreach tax%> |
|
152 |
<tr> |
|
153 |
<th colspan=5 align=right><%taxdescription%> on <%taxbase%> @ <%taxrate%> %</th> |
|
154 |
<td colspan=2 align=right><%tax%></td> |
|
155 |
</tr> |
|
156 |
<%end tax%> |
|
157 |
|
|
158 |
<%if paid%> |
|
159 |
<tr> |
|
160 |
<th colspan=5 align=right>Paid</th> |
|
161 |
<td colspan=2 align=right>- <%paid%></td> |
|
162 |
</tr> |
|
163 |
<%end paid%> |
|
164 |
|
|
165 |
<tr> |
|
166 |
<td colspan=3> </td> |
|
167 |
<td colspan=4><hr noshade></td> |
|
168 |
</tr> |
|
169 |
|
|
170 |
<tr> |
|
171 |
<td colspan=3>Terms Net <b><%terms%></b> days</td> |
|
172 |
<th colspan=2 align=right>Outstanding</th> |
|
173 |
<th colspan=2 align=right><%total%></th> |
|
174 |
</tr> |
|
175 |
|
|
176 |
<tr> |
|
177 |
<td> </td> |
|
178 |
</tr> |
|
179 |
|
|
180 |
</table> |
|
181 |
</td> |
|
182 |
</tr> |
|
183 |
|
|
184 |
<tr> |
|
185 |
<td> |
|
186 |
<table width=100%> |
|
187 |
<tr valign=top> |
|
188 |
<%if notes%> |
|
189 |
<td>Notes</td> |
|
190 |
<td><%notes%></td> |
|
191 |
<%end notes%> |
|
192 |
<td align=right> |
|
193 |
All prices in <b><%currency%></b> Funds |
|
194 |
<br><%shippingpoint%> |
|
195 |
</td> |
|
196 |
</tr> |
|
197 |
|
|
198 |
</table> |
|
199 |
</td> |
|
200 |
</tr> |
|
201 |
|
|
202 |
<tr><td> </td></tr> |
|
203 |
|
|
204 |
<%if paid%> |
|
205 |
<tr> |
|
206 |
<td colspan=7> |
|
207 |
<table width=60%> |
|
208 |
<tr> |
|
209 |
<th align=left>Payments</th> |
|
210 |
</tr> |
|
211 |
<tr> |
|
212 |
<td colspan=4> |
|
213 |
<hr noshade> |
|
214 |
</td> |
|
215 |
</tr> |
|
216 |
<tr> |
|
217 |
<th align=left>Date</th> |
|
218 |
<th align=left>Account</th> |
|
219 |
<th align=left>Source</th> |
|
220 |
<th align=left>Amount</th> |
|
221 |
</tr> |
|
222 |
<%end paid%> |
|
223 |
|
|
224 |
<%foreach payment%> |
|
225 |
<tr> |
|
226 |
<td><%paymentdate%></td> |
|
227 |
<td><%paymentaccount%></td> |
|
228 |
<td><%paymentsource%></td> |
|
229 |
<td><%payment%></td> |
|
230 |
</tr> |
|
231 |
<%end payment%> |
|
232 |
|
|
233 |
<%if paid%> |
|
234 |
</table> |
|
235 |
</td> |
|
236 |
</tr> |
|
237 |
|
|
238 |
<tr> |
|
239 |
<td> </td> |
|
240 |
</tr> |
|
241 |
<%end paid%> |
|
242 |
|
|
243 |
<tr> |
|
244 |
<th colspan=7> |
|
245 |
<br>Thank you for your valued business! |
|
246 |
</th> |
|
247 |
</tr> |
|
248 |
|
|
249 |
<tr><td> </td></tr> |
|
250 |
|
|
251 |
<tr> |
|
252 |
<td> |
|
253 |
<table width=100%> |
|
254 |
<tr valign=top> |
|
255 |
<td><font size=-3> |
|
256 |
Payment due NET <%terms%> Days from date of Invoice. |
|
257 |
Interest on overdue amounts will acrue at the rate of 1.5% per month |
|
258 |
from due date until paid in full. Items returned are subject to |
|
259 |
a 10% restocking charge. A return authorization must be obtained |
|
260 |
from <%company%> before goods are returned. Returns must be shipped |
|
261 |
prepaid and properly insured. <%company%> will not be responsible |
|
262 |
for damages during transit. |
|
263 |
</font> |
|
264 |
</td> |
|
265 |
<td width=150> |
|
266 |
X <hr noshade> |
|
267 |
</td> |
|
268 |
</tr> |
|
269 |
</table> |
|
270 |
</td> |
|
271 |
</tr> |
|
272 |
|
|
273 |
<%foreach tax%> |
|
274 |
<tr> |
|
275 |
<th colspan=7 align=left><font size=-2><%taxdescription%> Registration <%taxnumber%></th> |
|
276 |
</tr> |
|
277 |
<%end tax%> |
|
278 |
|
|
279 |
<%if taxincluded%> |
|
280 |
<tr> |
|
281 |
<th colspan=7 align=left><font size=-2>Taxes shown are included in price.</th> |
|
282 |
</tr> |
|
283 |
<%end taxincluded%> |
|
284 |
|
|
285 |
<!-- business number |
|
286 |
<tr> |
|
287 |
<th colspan=7 align=left><font size=-2>Business Number: <%businessnumber%></font></th> |
|
288 |
</tr> |
|
289 |
--> |
|
290 |
|
|
291 |
<!-- banking information |
|
292 |
<tr> |
|
293 |
<th colspan=7 align=left>Banking Information: |
|
294 |
<br>Bank |
|
295 |
<br>Transit No. |
|
296 |
<br>Account No. |
|
297 |
</td> |
|
298 |
</tr> |
|
299 |
--> |
|
300 |
|
|
301 |
</table> |
|
302 |
|
|
303 |
</td> |
|
304 |
</tr> |
|
305 |
</table> |
|
306 |
|
|
307 |
</body> |
|
308 |
</html> |
|
309 |
|
templates/mastertemplates/Default/invoice.tex | ||
---|---|---|
1 |
\documentclass[twoside]{scrartcl} |
|
2 |
\usepackage[frame]{xy} |
|
3 |
\usepackage{tabularx} |
|
4 |
\usepackage[utf8]{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 37%> |
|
48 |
\end{tabular*} |
|
49 |
|
|
50 |
\rule{\textwidth}{2pt} |
|
51 |
|
|
52 |
\hfill |
|
53 |
\begin{tabularx}{7cm}{Xr@{}} |
|
54 |
\textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\ |
|
55 |
\end{tabularx} |
|
56 |
|
|
57 |
\newpage |
|
58 |
|
|
59 |
\markright{<%company%>\hfill <%invnumber%>} |
|
60 |
|
|
61 |
\vspace*{-12pt} |
|
62 |
|
|
63 |
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}} |
|
64 |
\textbf{Number} & \textbf{Description} & \textbf{Qt'y} & |
|
65 |
\textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\ |
|
66 |
& carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\ |
|
67 |
<%end pagebreak%> |
|
68 |
|
|
69 |
|
|
70 |
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont |
|
71 |
|
|
72 |
\vspace*{0.5cm} |
|
73 |
|
|
74 |
\parbox[t]{1cm}{\hfill} |
|
75 |
\parbox[t]{10.5cm}{ |
|
76 |
\textbf{To} |
|
77 |
\vspace{0.5cm} |
|
78 |
|
|
79 |
<%name%> |
|
80 |
|
|
81 |
<%street%> |
|
82 |
|
|
83 |
<%zipcode%> |
|
84 |
|
|
85 |
<%city%> |
|
86 |
|
|
87 |
<%country%> |
|
88 |
|
|
89 |
\vspace{0.3cm} |
|
90 |
|
|
91 |
%<%if contact%> |
|
92 |
%Attn: <%contact%> |
|
93 |
%\vspace{0.3cm} |
|
94 |
%<%end contact%> |
|
95 |
\vspace{0.5cm} |
|
96 |
|
|
97 |
<%if customerphone%> |
|
98 |
Tel: <%customerphone%> |
|
99 |
<%end customerphone%> |
|
100 |
|
|
101 |
<%if customerfax%> |
|
102 |
Fax: <%customerfax%> |
|
103 |
<%end customerfax%> |
|
104 |
|
|
105 |
<%email%> |
|
106 |
} |
|
107 |
\parbox[t]{7.5cm}{ |
|
108 |
\textbf{Ship To} |
|
109 |
\vspace{0.5cm} |
|
110 |
|
|
111 |
<%shiptoname%> |
|
112 |
|
|
113 |
<%shiptostreet%> |
|
114 |
|
|
115 |
<%shiptozipcode%> |
|
116 |
|
|
117 |
<%shiptocity%> |
|
118 |
|
|
119 |
<%shiptocountry%> |
|
120 |
|
|
121 |
\vspace{0.3cm} |
|
122 |
|
|
123 |
\vspace{0.3cm} |
|
124 |
|
|
125 |
<%if shiptocontact%> |
|
126 |
Attn: <%shiptocontact%> |
|
127 |
\vspace{0.3cm} |
|
128 |
<%end shiptocontact%> |
|
129 |
|
|
130 |
<%if shiptophone%> |
|
131 |
Tel: <%shiptophone%> |
|
132 |
<%end shiptophone%> |
|
133 |
|
|
134 |
<%if shiptofax%> |
|
135 |
Fax: <%shiptofax%> |
|
136 |
<%end shiptofax%> |
|
137 |
|
|
138 |
<%shiptoemail%> |
|
139 |
} |
|
140 |
\hfill |
|
141 |
|
|
142 |
\vspace{1cm} |
|
143 |
|
|
144 |
\textbf{I N V O I C E} |
|
145 |
\hfill |
|
146 |
|
|
147 |
\vspace{1cm} |
|
148 |
|
|
149 |
\begin{tabular}[t]{l@{\hspace{0.3cm}}l} |
|
150 |
\textbf{Date} & <%invdate%> \\ |
|
151 |
\textbf{Number} & <%invnumber%> \\ |
|
152 |
\textbf{Order} & <%ordnumber%> \\ |
|
153 |
\textbf{Clerk} & <%employee%> |
|
154 |
\end{tabular} |
|
155 |
|
|
156 |
\vspace{1cm} |
|
157 |
|
|
158 |
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}} |
|
159 |
\textbf{Number} & \textbf{Description} & \textbf{Qt'y} & |
|
160 |
\textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\ |
|
161 |
<%foreach number%> |
|
162 |
<%number%> & <%description%> & <%qty%> & |
|
163 |
<%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\ |
|
164 |
<%end number%> |
|
165 |
\end{tabular*} |
|
166 |
|
|
167 |
|
|
168 |
\parbox{\textwidth}{ |
|
169 |
\rule{\textwidth}{2pt} |
|
170 |
|
|
171 |
\vspace{0.2cm} |
|
172 |
|
|
173 |
\hfill |
|
174 |
\begin{tabularx}{7cm}{Xr@{}} |
|
175 |
\textbf{Subtotal} & \textbf{<%subtotal%>} \\ |
|
176 |
<%foreach tax%> |
|
177 |
<%taxdescription%> on <%taxbase%> & <%tax%> \\ |
|
178 |
<%end tax%> |
|
179 |
<%if paid%> |
|
180 |
\textbf{Paid} & - <%paid%> \\ |
|
181 |
<%end paid%> |
|
182 |
\hline |
|
183 |
\textbf{Balance Owing} & \textbf{<%total%>} \\ |
|
184 |
\end{tabularx} |
|
185 |
|
|
186 |
\vspace{0.3cm} |
|
187 |
|
|
188 |
\hfill |
|
189 |
All prices in \textbf{<%currency%>} funds. |
|
190 |
|
|
191 |
\vspace{12pt} |
|
192 |
|
|
193 |
<%if notes%> |
|
194 |
<%notes%> |
|
195 |
<%end if%> |
|
196 |
|
|
197 |
} |
|
198 |
|
|
199 |
\vfill |
|
200 |
|
|
201 |
<%if paid%> |
|
202 |
\begin{tabularx}{10cm}{@{}lXlr@{}} |
|
203 |
\textbf{Payments} & & & \\ |
|
204 |
\hline |
|
205 |
\textbf{Date} & \textbf{Account} & \textbf{Source} & \textbf{Amount} \\ |
|
206 |
<%end paid%> |
|
207 |
<%foreach payment%> |
|
208 |
<%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\ |
|
209 |
<%end payment%> |
|
210 |
<%if paid%> |
|
211 |
\end{tabularx} |
|
212 |
<%end paid%> |
|
213 |
|
|
214 |
\vspace{1cm} |
|
215 |
|
|
216 |
\centerline{\textbf{Thank You for your valued business!}} |
|
217 |
|
|
218 |
\renewcommand{\thefootnote}{\fnsymbol{footnote}} |
|
219 |
|
|
220 |
\footnotetext[1]{\tiny |
|
221 |
Payment due NET <%terms%> Days from date of Invoice. Interest on overdue |
|
222 |
amounts will acrue at the rate of 1.5\% per month starting <%duedate%> |
|
223 |
until paid in full. Items returned are subject to a 10\% restocking charge. |
|
224 |
A return authorization must be obtained from <%company%> before goods are |
|
225 |
returned. Returns must be shipped prepaid and properly insured. |
|
226 |
<%company%> will not be responsible for damages during transit.} |
|
227 |
|
|
228 |
\end{document} |
|
229 |
|
|
230 |
|
|
231 |
|
templates/mastertemplates/Default/pick_list.html | ||
---|---|---|
1 |
|
|
2 |
<body bgcolor=ffffff> |
|
3 |
|
|
4 |
<table width=100%> |
|
5 |
<tr> |
|
6 |
<td width=10> </td> |
|
7 |
|
|
8 |
<td> |
|
9 |
<table width=100%> |
|
10 |
<tr> |
|
11 |
<td> |
|
12 |
<h4> |
|
13 |
<%company%> |
|
14 |
<br><%address%> |
|
15 |
</h4> |
|
16 |
</td> |
|
17 |
|
|
18 |
<th><img src=http://localhost/lx-erp/lx-office-erp.png border=0 width=64 height=58></th> |
|
19 |
|
|
20 |
<td align=right> |
|
21 |
<h4> |
|
22 |
Tel: <%tel%> |
|
23 |
<br>Fax: <%fax%> |
|
24 |
</h4> |
|
25 |
</td> |
|
26 |
</tr> |
|
27 |
|
|
28 |
<tr> |
|
29 |
<th colspan=3> |
|
30 |
<h4>P I C K L I S T</h4> |
|
31 |
</th> |
|
32 |
</tr> |
|
33 |
</table> |
|
34 |
</td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<td> </td> |
|
39 |
|
|
40 |
<td> |
|
41 |
<table width=100% callspacing=0 cellpadding=0> |
|
42 |
<tr bgcolor=000000> |
|
43 |
<th width=50% align=left><font color=ffffff>Ship To:</th> |
|
44 |
<th width=50%> </th> |
|
45 |
</tr> |
|
46 |
|
|
47 |
<tr valign=top> |
|
48 |
<td><%shiptoname%> |
|
49 |
<br><%shiptostreet%> |
|
50 |
<br><%shiptozipcode%> |
|
51 |
<br><%shiptocity%> |
|
52 |
<br><%shiptocountry%> |
|
53 |
</td> |
|
54 |
|
|
55 |
<td> |
|
56 |
<%if shiptocontact%> |
|
57 |
<br>Attn: <%shiptocontact%> |
|
58 |
<%end shiptocontact%> |
|
59 |
|
|
60 |
<%if shiptophone%> |
|
61 |
<br>Tel: <%shiptophone%> |
|
62 |
<%end shiptophone%> |
|
63 |
|
|
64 |
<%if shiptofax%> |
|
65 |
<br>Fax: <%shiptofax%> |
|
66 |
<%end shiptofax%> |
|
67 |
|
|
68 |
<%shiptoemail%> |
|
69 |
</td> |
|
70 |
</tr> |
|
71 |
</table> |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
|
|
75 |
<tr height=5></tr> |
|
76 |
|
|
77 |
<tr> |
|
78 |
<td> </td> |
|
79 |
|
|
80 |
<td> |
|
81 |
<table width=100% border=1> |
|
82 |
<tr> |
|
83 |
<th width=17% align=left>Order #</th> |
|
84 |
<th width=17% align=left>Date</th> |
|
85 |
<th width=17% align=left nowrap>Contact</th> |
|
86 |
<%if warehouse%> |
|
87 |
<th width=17% align=left>Warehouse</th> |
|
88 |
<%end warehouse%> |
|
89 |
<th width=17% align=left>Shipping Point</th> |
|
90 |
<th width=15% align=left>Ship via</th> |
|
91 |
</tr> |
|
92 |
|
|
93 |
<tr> |
|
94 |
<td><%ordnumber%> </td> |
|
95 |
|
|
96 |
<%if shippingdate%> |
|
97 |
<td><%shippingdate%></td> |
|
98 |
<%end shippingdate%> |
|
99 |
|
|
100 |
<%if not shippingdate%> |
|
101 |
<td><%orddate%></td> |
|
102 |
<%end shippingdate%> |
|
103 |
|
|
104 |
<td><%employee%> </td> |
|
105 |
|
|
106 |
<%if warehouse%> |
|
107 |
<td><%warehouse%> </td> |
|
108 |
<%end warehouse%> |
|
109 |
|
|
110 |
<td><%shippingpoint%> </td> |
|
111 |
<td><%shipvia%> </td> |
|
112 |
</tr> |
|
113 |
</table> |
|
114 |
</td> |
|
115 |
</tr> |
|
116 |
|
|
117 |
<tr> |
|
118 |
<td> </td> |
|
119 |
|
|
120 |
<td> |
|
121 |
<table width=100%> |
|
122 |
<tr bgcolor=000000> |
|
123 |
<th align=left><font color=ffffff>Pos</th> |
|
124 |
<th align=left><font color=ffffff>Number</th> |
|
125 |
<th align=left><font color=ffffff>Description</th> |
|
126 |
<th><font color=ffffff>Qty</th> |
|
127 |
<th><font color=ffffff>Ship</th> |
|
128 |
<th> </th> |
|
129 |
<th><font color=ffffff>Bin</th> |
|
130 |
</tr> |
|
131 |
|
|
132 |
<%foreach number%> |
|
133 |
<tr valign=top> |
|
134 |
<td><%runningnumber%> |
|
135 |
<td><%number%></td> |
|
136 |
<td><%description%></td> |
|
137 |
<td align=right><%qty%></td> |
|
138 |
<td align=right>[ ]</td> |
|
139 |
<td><%unit%></td> |
|
140 |
<td align=right><%bin%></td> |
|
141 |
</tr> |
|
142 |
<%end number%> |
|
143 |
</table> |
|
144 |
</td> |
|
145 |
</tr> |
|
146 |
|
|
147 |
<tr> |
|
148 |
<td> </td> |
|
149 |
|
|
150 |
<td><hr noshade></td> |
|
151 |
</tr> |
|
152 |
|
|
153 |
</table> |
|
154 |
|
templates/mastertemplates/Default/pick_list.tex | ||
---|---|---|
1 |
\documentclass[twoside]{scrartcl} |
|
2 |
\usepackage[frame]{xy} |
|
3 |
\usepackage{tabularx} |
|
4 |
\usepackage[utf8]{inputenc} |
|
5 |
\usepackage{graphicx} |
|
6 |
\setlength{\voffset}{0.5cm} |
|
7 |
\setlength{\hoffset}{-2.0cm} |
|
8 |
\setlength{\topmargin}{0cm} |
|
9 |
\setlength{\headheight}{0.5cm} |
|
10 |
\setlength{\headsep}{1cm} |
|
11 |
\setlength{\topskip}{0pt} |
|
12 |
\setlength{\oddsidemargin}{1.0cm} |
|
13 |
\setlength{\evensidemargin}{1.0cm} |
|
14 |
\setlength{\textwidth}{19.2cm} |
|
15 |
\setlength{\textheight}{24.7cm} |
|
16 |
\setlength{\footskip}{1cm} |
|
17 |
\setlength{\parindent}{0pt} |
|
18 |
\renewcommand{\baselinestretch}{1} |
|
19 |
|
|
20 |
\begin{document} |
|
21 |
|
|
22 |
\newlength{\descrwidth}\setlength{\descrwidth}{10cm} |
|
23 |
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont |
|
24 |
|
|
25 |
\pagestyle{myheadings} |
|
26 |
\thispagestyle{empty} |
|
27 |
|
|
28 |
\vspace*{-1.3cm} |
|
29 |
|
|
30 |
\parbox{\textwidth}{ |
|
31 |
\parbox[b]{.42\textwidth}{ |
|
32 |
<%company%> |
|
33 |
|
|
34 |
<%address%> |
|
35 |
} |
|
36 |
\parbox[b]{.2\textwidth}{ |
|
37 |
\includegraphics[scale=0.3]{sql-ledger} |
|
38 |
}\hfill |
|
39 |
\begin{tabular}[b]{rr@{}} |
|
40 |
Telephone & <%tel%>\\ |
|
41 |
Facsimile & <%fax%> |
|
42 |
\end{tabular} |
|
43 |
|
|
44 |
\rule[1.5ex]{\textwidth}{0.5pt} |
|
45 |
} |
|
46 |
|
|
47 |
|
|
48 |
<%pagebreak 90 27 37%> |
|
49 |
\end{tabular*} |
|
50 |
|
|
51 |
\newpage |
|
52 |
|
|
53 |
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>} |
|
54 |
|
|
55 |
\vspace*{-12pt} |
|
56 |
|
|
57 |
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rcll@{}} |
|
58 |
\textbf{Pos} & \textbf{Number} & \textbf{Description} & |
|
59 |
\textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\ |
|
60 |
<%end pagebreak%> |
|
61 |
|
|
62 |
|
|
63 |
\vspace*{0.5cm} |
|
64 |
|
|
65 |
\parbox[t]{1cm}{\hfill} |
|
66 |
\parbox[t]{.5\textwidth}{ |
|
67 |
\textbf{Ship To} |
|
68 |
} \hfill |
|
69 |
|
|
70 |
\vspace{0.7cm} |
|
71 |
|
|
72 |
\parbox[t]{1cm}{\hfill} |
|
73 |
\parbox[t]{.5\textwidth}{ |
|
74 |
|
|
75 |
<%shiptoname%> \\ |
|
76 |
<%shiptostreet%> \\ |
|
77 |
<%shiptozipcode%> \\ |
|
78 |
<%shiptocity%> \\ |
|
79 |
<%shiptocountry%> |
|
80 |
} |
|
81 |
\parbox[t]{.4\textwidth}{ |
|
82 |
<%shiptocontact%> |
|
83 |
|
|
84 |
<%if shiptophone%> |
|
85 |
Tel: <%shiptophone%> |
|
86 |
<%end shiptophone%> |
|
87 |
|
|
88 |
<%if shiptofax%> |
|
89 |
Fax: <%shiptofax%> |
|
90 |
<%end shiptofax%> |
|
91 |
|
|
92 |
<%shiptoemail%> |
|
93 |
} |
|
94 |
\hfill |
|
95 |
|
|
96 |
\vspace{1cm} |
|
97 |
|
|
98 |
\textbf{P I C K} \parbox{0.3cm}{\hfill} \textbf{L I S T} |
|
99 |
\hfill |
|
100 |
|
|
101 |
\vspace{1cm} |
|
102 |
|
|
103 |
\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline |
|
104 |
\textbf{Order \#} & \textbf{Date} & \textbf{Contact} |
|
105 |
<%if warehouse%> |
|
106 |
& \textbf{Warehouse} |
|
107 |
<%end warehouse%> |
|
108 |
& \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em] |
|
109 |
\hline |
|
110 |
<%ordnumber%> |
|
111 |
<%if shippingdate%> |
|
112 |
& <%shippingdate%> |
|
113 |
<%end shippingdate%> |
|
114 |
<%if not shippingdate%> |
|
115 |
& <%orddate%> |
|
116 |
<%end shippingdate%> |
|
117 |
& <%employee%> |
|
118 |
<%if warehouse%> |
|
119 |
& <%warehouse%> |
|
120 |
<%end warehouse%> |
|
121 |
& <%shippingpoint%> & <%shipvia%> \\ |
|
122 |
\hline |
|
123 |
\end{tabularx} |
|
124 |
|
|
125 |
\vspace{1cm} |
|
126 |
|
|
127 |
\begin{tabular*}{\textwidth}{@{}rlp{\descrwidth}@{\extracolsep\fill}rcll@{}} |
|
128 |
\textbf{Pos} & \textbf{Number} & \textbf{Description} & |
|
129 |
\textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\ |
|
130 |
<%foreach number%> |
|
131 |
<%runningnumber%> & <%number%> & <%description%> & |
|
132 |
<%qty%> & [\hspace{1cm}] & <%unit%> & <%bin%> \\ |
|
133 |
<%end number%> |
|
134 |
\end{tabular*} |
|
135 |
|
|
136 |
|
|
137 |
\parbox{\textwidth}{ |
|
138 |
\rule{\textwidth}{2pt} |
|
139 |
} |
|
140 |
|
|
141 |
\end{document} |
|
142 |
|
templates/mastertemplates/Default/purchase_order.html | ||
---|---|---|
1 |
|
|
2 |
<body bgcolor=ffffff> |
Auch abrufbar als: Unified diff
Verzeichnis für Druckvorlagensätze von mastertemplates in print umbenannt.