Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d4a434e1

Von Bernd Blessmann vor etwa 13 Jahren hinzugefügt

  • ID d4a434e1deba2695ef4d4a3fc0d51ac1b2044fb0
  • Vorgänger 8f096737
  • Nachfolger ef888d16

Verzeichnis für Druckvorlagensätze von mastertemplates in print umbenannt.

Unterschiede anzeigen:

bin/mozilla/admin.pl
closedir TEMPLATEDIR;
@alldir = grep !/\.(html|tex|sty|odt|xml|txb)$/, @alldir;
@alldir = grep !/^(webpages|mastertemplates|\.svn)$/, @alldir;
@alldir = grep !/^(webpages|print|\.svn)$/, @alldir;
$form->{ALL_TEMPLATES} = [ map { { "name", => $_, "selected" => $_ eq $myconfig->{templates} } } @alldir ];
# mastertemplates
opendir TEMPLATEDIR, "$::lx_office_conf{paths}->{templates}/mastertemplates" or $form->error("$::lx_office_conf{paths}->{templates}/mastertemplates" . " : $ERRNO");
opendir TEMPLATEDIR, "$::lx_office_conf{paths}->{templates}/print" or $form->error("$::lx_office_conf{paths}->{templates}/print" . " : $ERRNO");
my @allmaster = readdir(TEMPLATEDIR);
closedir TEMPLATEDIR;
@allmaster = sort grep { -d ("$::lx_office_conf{paths}->{templates}/mastertemplates" . "/$_") && !/^\.\.?$/ } @allmaster;
@allmaster = sort grep { -d ("$::lx_office_conf{paths}->{templates}/print" . "/$_") && !/^\.\.?$/ } @allmaster;
@allmaster = reverse grep !/Default/, @allmaster;
push @allmaster, 'Default';
@allmaster = reverse @allmaster;
......
# copy templates to the directory
my $oldcurrdir = getcwd();
if (!chdir("$::lx_office_conf{paths}->{templates}/mastertemplates/$form->{mastertemplates}")) {
$form->error("$ERRNO: chdir $::lx_office_conf{paths}->{templates}/mastertemplates/$form->{mastertemplates}");
if (!chdir("$::lx_office_conf{paths}->{templates}/print/$form->{mastertemplates}")) {
$form->error("$ERRNO: chdir $::lx_office_conf{paths}->{templates}/print/$form->{mastertemplates}");
}
my $newdir = File::Spec->catdir($oldcurrdir, $form->{templates});
templates/mastertemplates/Default/balance_sheet.html
<body bgcolor=ffffff>
<h2 align=center>
<%company%>
<br><%address%>
<p>BALANCE SHEET
<br><%period%>
</h2>
<table border=0>
<tr>
<th align=left width=400 colspan=2>ASSETS<br><hr align=left width=250 size=5 noshade></th>
<th><%this_period%></th>
<th><%last_period%></th>
</tr>
<%foreach asset_account%>
<tr>
<td> </td>
<td><%asset_account%></td>
<td align=right><%asset_this_period%></td>
<td align=right><%asset_last_period%></td>
</tr>
<%end asset_account%>
<tr>
<td colspan=2> </td>
<td><hr noshade size=1></td>
<td><hr noshade size=1></td>
</tr>
<tr valign=top>
<th align=left colspan=2>TOTAL ASSETS</th>
<td align=right><%total_assets_this_period%><hr noshade size=2></td>
<td align=right><%total_assets_last_period%><hr noshade size=2></td>
</tr>
<tr>
<th align=left colspan=4>LIABILITIES<b><hr align=left width=250 size=5 noshade></th>
</tr>
<%foreach liability_account%>
<tr>
<td></td>
<td><%liability_account%></td>
<td align=right><%liability_this_period%></td>
<td align=right><%liability_last_period%></td>
</tr>
<%end liability_account%>
<tr>
<td colspan=2> </td>
<td><hr noshade size=1></td>
<td><hr noshade size=1></td>
</tr>
<tr valign=top>
<td></td>
<th align=left>Total Liabilities</th>
<td align=right><%total_liabilities_this_period%><br><hr noshade size=2</td>
<td align=right><%total_liabilities_last_period%><br><hr noshade size=2</td>
</tr>
<tr>
<th align=left colspan=4>SHAREHOLDER'S EQUITY<br><hr align=left width=250 size=5 noshade></th>
</tr>
<%foreach equity_account%>
<tr>
<td></td>
<td><%equity_account%></td>
<td align=right><%equity_this_period%></td>
<td align=right><%equity_last_period%></td>
</tr>
<%end equity_account%>
<tr>
<td colspan=2> </td>
<td><hr noshade size=1></td>
<td><hr noshade size=1></td>
</tr>
<tr valign=top>
<td></td>
<th align=left>Total Equity</th>
<td align=right><%total_equity_this_period%><br><hr noshade size=2</td>
<td align=right><%total_equity_last_period%><br><hr noshade size=2</td>
</tr>
<tr valign=top>
<th align=left colspan=2>TOTAL LIABILITIES & EQUITY</th>
<td align=right><%total_this_period%><br><hr noshade size=2></td>
<td align=right><%total_last_period%><br><hr noshade size=2></td>
</tr>
</table>
templates/mastertemplates/Default/bin_list.html
<body bgcolor=ffffff>
<table width=100%>
<tr>
<td width=10>&nbsp;</td>
<td>
<table width=100%>
<tr>
<td>
<h4>
<%company%>
<br><%address%>
</h4>
</td>
<th><img src=http://localhost/lx-erp/lx-office-erp.png border=0 width=64 height=58></th>
<th align=right>
<h4>
Tel: <%tel%>
<br>Fax: <%fax%>
</h4>
</td>
</tr>
<tr>
<th colspan=3>
<h4>B I N &nbsp;&nbsp; L I S T</h4>
</th>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width=100% cellspacing=0 cellpadding=0>
<tr bgcolor=000000>
<th align=left width=50%><font color=ffffff>From</th>
<th align=left width=50%><font color=ffffff>Ship To</th>
</tr>
<tr valign=top>
<td><%name%>
<br><%street%>
<br><%zipcode%>
<br><%city%>
<br><%country%>
<br>
<%if contact%>
<br>Attn: <%contact%>
<%end contact%>
<%if vendorphone%>
<br>Tel: <%vendorphone%>
<%end vendorphone%>
<%if vendorfax%>
<br>Fax: <%vendorfax%>
<%end vendorfax%>
<%if email%>
<br><%email%>
<%end email%>
</td>
<td><%shiptoname%>
<br><%shiptostreet%>
<br><%shiptozipcode%>
<br><%shiptocity%>
<br><%shiptocountry%>
<br>
<%if shiptocontact%>
<br>Attn: <%shiptocontact%>
<%end shiptocontact%>
<%if shiptophone%>
<br>Tel: <%shiptophone%>
<%end shiptophone%>
<%if shiptofax%>
<br>Fax: <%shiptofax%>
<%end shiptofax%>
</td>
</tr>
</table>
</td>
</tr>
<tr height=5></tr>
<tr>
<td>&nbsp;</td>
<td>
<table width=100% border=1>
<tr>
<th width=17% align=left nowrap>Order #</th>
<th width=17% align=left nowrap>Date</th>
<th width=17% align=left nowrap>Contact</th>
<%if warehouse%>
<th width=17% align=left nowrap>Warehouse</th>
<%end warehouse%>
<th width=17% align=left>Shipping Point</th>
<th width=15% align=left>Ship via</th>
</tr>
<tr>
<td><%ordnumber%>&nbsp;</td>
<%if shippingdate%>
<td><%shippingdate%></td>
<%end shippingdate%>
<%if not shippingdate%>
<td><%orddate%></td>
<%end shippingdate%>
<td><%employee%>&nbsp;</td>
<%if warehouse%>
<td><%warehouse%></td>
<%end warehouse%>
<td><%shippingpoint%>&nbsp;</td>
<td><%shipvia%>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width=100%>
<tr bgcolor=000000>
<th align=left><font color=ffffff>Pos</th>
<th align=left><font color=ffffff>Number</th>
<th align=left><font color=ffffff>Description</th>
<th><font color=ffffff>Serialnumber</th>
<th>&nbsp;</th>
<th><font color=ffffff>Qty</th>
<th><font color=ffffff>Recd</th>
<th>&nbsp;</th>
<th><font color=ffffff>Bin</th>
</tr>
<%foreach number%>
<tr valign=top>
<td><%runningnumber%></td>
<td><%number%></td>
<td><%description%></td>
<td><%serialnumber%></td>
<td><%deliverydate%></td>
<td align=right><%qty%></td>
<td align=right><%ship%></td>
<td><%unit%></td>
<td><%bin%></td>
</tr>
<%end number%>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><hr noshade></td>
</tr>
</table>
templates/mastertemplates/Default/bin_list.tex
\documentclass[twoside]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\setlength{\voffset}{0.5cm}
\setlength{\hoffset}{-2.0cm}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0.5cm}
\setlength{\headsep}{1cm}
\setlength{\topskip}{0pt}
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{1.0cm}
\setlength{\textwidth}{19.2cm}
\setlength{\textheight}{24.7cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}
\begin{document}
\pagestyle{myheadings}
\thispagestyle{empty}
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
\vspace*{-1.3cm}
\parbox{\textwidth}{
\parbox[b]{.42\textwidth}{%
<%company%>
<%address%>
}\hfill
\begin{tabular}[b]{rr@{}}
Telephone & <%tel%>\\
Facsimile & <%fax%>
\end{tabular}
\rule[1.5ex]{\textwidth}{0.5pt}
}
<%pagebreak 90 27 37%>
\end{tabularx}
\newpage
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
\vspace*{-12pt}
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
\textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\
<%end pagebreak%>
\vspace*{0.5cm}
\parbox[t]{1cm}{\hfill}
\parbox[t]{.5\textwidth}{
\textbf{From}
\vspace{0.7cm}
<%name%> \\
<%street%> \\
<%zipcode%> \\
<%city%> \\
<%country%>
}
\parbox[t]{.4\textwidth}{
\textbf{Ship To}
\vspace{0.7cm}
<%shiptoname%> \\
<%shiptostreet%> \\
<%shiptozipcode%> \\
<%shiptocity%> \\
<%shiptocountry%>
}
\hfill
\vspace{1cm}
\textbf{B I N} \parbox{0.3cm}{\hfill} \textbf{L I S T}
\hfill
\vspace{1cm}
\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
\textbf{Order \#} & \textbf{Date} & \textbf{Contact}
<%if warehouse%>
& \textbf{Warehouse}
<%end warehouse%>
& \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em]
\hline
<%ordnumber%>
<%if shippingdate%>
& <%shippingdate%>
<%end shippingdate%>
<%if not shippingdate%>
& <%orddate%>
<%end shippingdate%>
& <%employee%>
<%if warehouse%>
& <%warehouse%>
<%end warehouse%>
& <%shippingpoint%> & <%shipvia%> \\
\hline
\end{tabularx}
\vspace{1cm}
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
\textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\
<%foreach number%>
<%runningnumber%> & <%number%> & <%description%> & <%serialnumber%> &
<%deliverydate%> & <%qty%> & <%ship%> & <%unit%> & <%bin%> \\
<%end number%>
\end{tabularx}
\rule{\textwidth}{2pt}
\end{document}
templates/mastertemplates/Default/check.tex
\documentclass[twoside]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\setlength{\voffset}{0.4cm}
\setlength{\hoffset}{-2.0cm}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0.0cm}
\setlength{\headsep}{1cm}
\setlength{\topskip}{0pt}
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{1.0cm}
\setlength{\textwidth}{19.2cm}
\setlength{\textheight}{24.5cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}
\begin{document}
\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont
\parbox[t]{12cm}{
<%company%>
<%address%>}
\hfill
\parbox[t]{6cm}{\hfill <%source%>}
\vspace*{0.6cm}
<%text_amount%> \dotfill <%decimal%>/100 \makebox[0.5cm]{\hfill}
\vspace{0.5cm}
\hfill <%datepaid%> \makebox[2cm]{\hfill} <%amount%>
\vspace{0.5cm}
<%name%>
<%street%>
<%zipcode%>
<%city%>
<%country%>
\vspace{2.8cm}
<%company%>
\vspace{0.5cm}
<%name%> \hfill <%datepaid%> \hfill <%source%>
\vspace{0.5cm}
\begin{tabularx}{\textwidth}{lXrr@{}}
\textbf{Invoice No.} & \textbf{Invoice Date}
& \textbf{Due} & \textbf{Applied} \\
<%foreach invnumber%>
<%invnumber%> & <%invdate%> \dotfill
& <%due%> & <%paid%> \\
<%end invnumber%>
\end{tabularx}
\vfill
\end{document}
templates/mastertemplates/Default/income_statement.html
<body bgcolor=ffffff>
<h2 align=center>
<%company%>
<br><%address%>
<p>INCOME STATEMENT
<br><%period%>
</h2>
<table width=100% border=0>
<tr>
<th width=400 align=left colspan=2>INCOME<br><hr width=300 size=5 align=left noshade></th>
<th><%this_period%></th>
<th><%last_period%></th>
</tr>
<%foreach income_account%>
<tr>
<td width=4> </td>
<td><%income_account%></td>
<td align=right><%income_this_period%></td>
<td align=right><%income_last_period%></td>
</tr>
<%end income_account%>
<tr>
<td colspan=2> </td>
<td><hr noshade size=1></td>
<td><hr noshade size=1></td>
</tr>
<tr valign=top>
<td> </td>
<th align=left>Total Income</th>
<td align=right><%total_income_this_period%><hr noshade size=2></td>
<td align=right><%total_income_last_period%><hr noshade size=2></td>
</tr>
<tr>
<th align=left colspan=2>EXPENSES<br><hr width=300 size=5 align=left noshade></th>
</tr>
<%foreach expense_account%>
<tr>
<td> </td>
<td><%expense_account%></td>
<td align=right><%expenses_this_period%></td>
<td align=right><%expenses_last_period%></td>
</tr>
<%end expense_account%>
<tr>
<td colspan=2> </td>
<td><hr noshade size=1></td>
<td><hr noshade size=1></td>
</tr>
<tr valign=top>
<td> </td>
<th align=left>Total Expenses</th>
<td align=right><%total_expenses_this_period%><br><hr noshade size=2</td>
<td align=right><%total_expenses_last_period%><br><hr noshade size=2</td>
</tr>
<tr valign=top>
<th align=left colspan=2>INCOME / (LOSS)</th>
<td align=right><%total_this_period%><br><hr noshade size=2></td>
<td align=right><%total_last_period%><br><hr noshade size=2></td>
</tr>
</table>
templates/mastertemplates/Default/invoice.html
<body bgcolor=ffffff>
<table width=100%>
<tr valign=bottom>
<td width=10>&nbsp;</td>
<td>
<table width=100%>
<tr>
<td>
<h4>
<%company%>
<br><%address%>
</h4>
</td>
<td align=right>
<h4>
Telephone: <%tel%>
<br>Facsimile: <%fax%>
</h4>
</td>
</tr>
<tr>
<th colspan=3>
<h4>I N V O I C E</h4>
</th>
</tr>
</table>
<table width=100% callspacing=0 cellpadding=0>
<tr>
<td align=right>
<table>
<tr>
<th align=right>Invoice Date</th><td width=10>&nbsp;</td><td><%invdate%></td>
</tr>
<tr>
<th align=right>Due Date</th><td width=10>&nbsp;</td><td><%duedate%></td>
</tr>
<tr>
<th align=right>Number</th><td>&nbsp;</td><td><%invnumber%></td></tr>
</tr>
<!--
<tr>
<th align=right>Clerk:</th><td>&nbsp;</td><td><%employee%></td>
</tr>
-->
<tr>
<td>&nbsp;</td>
</tr>
</td>
</table>
</tr>
<tr>
<td>
<table width=100%>
<tr bgcolor=000000>
<th align=left><font color=ffffff>To:</th>
<th align=left><font color=ffffff>Ship To:</th>
</tr>
<!--
other variables which can be use:
contact, shiptocontact, shiptophone, shiptofax
-->
<tr valign=top>
<td><%name%>
<br><%street%>
<br><%zipcode%>
<br><%city%>
<br><%country%>
</td>
<td><%shiptoname%>
<br><%shiptostreet%>
<br><%shiptozipcode%>
<br><%shiptocity%>
<br><%shiptocountry%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width=100%>
<tr bgcolor=000000>
<!-- <th align=right><font color=ffffff>No.</th> -->
<th align=left><font color=ffffff>Number</th>
<th align=left><font color=ffffff>Description</th>
<th><font color=ffffff>Qt'y</th>
<th>&nbsp;</th>
<th><font color=ffffff>Price</th>
<th><font color=ffffff>Disc</th>
<th><font color=ffffff>Amount</th>
</tr>
<%foreach number%>
<tr valign=top>
<!-- <td align=right><%runningnumber%>.</td>
adjust the colspan if you include this to shift subtotal one to the right
-->
<td><%number%></td>
<td><%description%></td>
<td align=right><%qty%></td>
<td><%unit%></td>
<td align=right><%sellprice%></td>
<td align=right><%discount%></td>
<td align=right><%linetotal%></td>
</tr>
<%end number%>
<!--
you can also use netprice instead of sellprice if you
don't want to show the discount
netprice = sellprice - discount
-->
<tr>
<td colspan=7><hr noshade></td>
</tr>
<tr>
<%if taxincluded%>
<th colspan=5 align=right>Total</th>
<td colspan=2 align=right><%invtotal%></td>
<%end taxincluded%>
<%if not taxincluded%>
<th colspan=5 align=right>Subtotal</th>
<td colspan=2 align=right><%subtotal%></td>
<%end taxincluded%>
</tr>
<%foreach tax%>
<tr>
<th colspan=5 align=right><%taxdescription%> on <%taxbase%> @ <%taxrate%> %</th>
<td colspan=2 align=right><%tax%></td>
</tr>
<%end tax%>
<%if paid%>
<tr>
<th colspan=5 align=right>Paid</th>
<td colspan=2 align=right>- <%paid%></td>
</tr>
<%end paid%>
<tr>
<td colspan=3>&nbsp;</td>
<td colspan=4><hr noshade></td>
</tr>
<tr>
<td colspan=3>Terms Net <b><%terms%></b> days</td>
<th colspan=2 align=right>Outstanding</th>
<th colspan=2 align=right><%total%></th>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width=100%>
<tr valign=top>
<%if notes%>
<td>Notes</td>
<td><%notes%></td>
<%end notes%>
<td align=right>
All prices in <b><%currency%></b> Funds
<br><%shippingpoint%>
</td>
</tr>
</table>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<%if paid%>
<tr>
<td colspan=7>
<table width=60%>
<tr>
<th align=left>Payments</th>
</tr>
<tr>
<td colspan=4>
<hr noshade>
</td>
</tr>
<tr>
<th align=left>Date</th>
<th align=left>Account</th>
<th align=left>Source</th>
<th align=left>Amount</th>
</tr>
<%end paid%>
<%foreach payment%>
<tr>
<td><%paymentdate%></td>
<td><%paymentaccount%></td>
<td><%paymentsource%></td>
<td><%payment%></td>
</tr>
<%end payment%>
<%if paid%>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<%end paid%>
<tr>
<th colspan=7>
<br>Thank you for your valued business!
</th>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>
<table width=100%>
<tr valign=top>
<td><font size=-3>
Payment due NET <%terms%> Days from date of Invoice.
Interest on overdue amounts will acrue at the rate of 1.5% per month
from due date until paid in full. Items returned are subject to
a 10% restocking charge. A return authorization must be obtained
from <%company%> before goods are returned. Returns must be shipped
prepaid and properly insured. <%company%> will not be responsible
for damages during transit.
</font>
</td>
<td width=150>
X <hr noshade>
</td>
</tr>
</table>
</td>
</tr>
<%foreach tax%>
<tr>
<th colspan=7 align=left><font size=-2><%taxdescription%> Registration <%taxnumber%></th>
</tr>
<%end tax%>
<%if taxincluded%>
<tr>
<th colspan=7 align=left><font size=-2>Taxes shown are included in price.</th>
</tr>
<%end taxincluded%>
<!-- business number
<tr>
<th colspan=7 align=left><font size=-2>Business Number: <%businessnumber%></font></th>
</tr>
-->
<!-- banking information
<tr>
<th colspan=7 align=left>Banking Information:
<br>Bank
<br>Transit No.
<br>Account No.
</td>
</tr>
-->
</table>
</td>
</tr>
</table>
</body>
</html>
templates/mastertemplates/Default/invoice.tex
\documentclass[twoside]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\setlength{\voffset}{0.5cm}
\setlength{\hoffset}{-2.0cm}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0.5cm}
\setlength{\headsep}{1cm}
\setlength{\topskip}{0pt}
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{1.0cm}
\setlength{\textwidth}{19.2cm}
\setlength{\textheight}{24.5cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}
\begin{document}
\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
\newsavebox{\hdr}
\sbox{\hdr}{
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
\parbox{\textwidth}{
\parbox[b]{12cm}{
<%company%>
<%address%>}\hfill
\begin{tabular}[b]{rr@{}}
Telephone & <%tel%>\\
Facsimile & <%fax%>
\end{tabular}
\rule[1.5ex]{\textwidth}{0.5pt}
}
}
\fontfamily{cmss}\fontshape{n}\selectfont
\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
\pagestyle{myheadings}
%\thispagestyle{empty} use this with letterhead paper
<%pagebreak 90 27 37%>
\end{tabular*}
\rule{\textwidth}{2pt}
\hfill
\begin{tabularx}{7cm}{Xr@{}}
\textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
\end{tabularx}
\newpage
\markright{<%company%>\hfill <%invnumber%>}
\vspace*{-12pt}
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
\textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
\textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
& carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
<%end pagebreak%>
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
\vspace*{0.5cm}
\parbox[t]{1cm}{\hfill}
\parbox[t]{10.5cm}{
\textbf{To}
\vspace{0.5cm}
<%name%>
<%street%>
<%zipcode%>
<%city%>
<%country%>
\vspace{0.3cm}
%<%if contact%>
%Attn: <%contact%>
%\vspace{0.3cm}
%<%end contact%>
\vspace{0.5cm}
<%if customerphone%>
Tel: <%customerphone%>
<%end customerphone%>
<%if customerfax%>
Fax: <%customerfax%>
<%end customerfax%>
<%email%>
}
\parbox[t]{7.5cm}{
\textbf{Ship To}
\vspace{0.5cm}
<%shiptoname%>
<%shiptostreet%>
<%shiptozipcode%>
<%shiptocity%>
<%shiptocountry%>
\vspace{0.3cm}
\vspace{0.3cm}
<%if shiptocontact%>
Attn: <%shiptocontact%>
\vspace{0.3cm}
<%end shiptocontact%>
<%if shiptophone%>
Tel: <%shiptophone%>
<%end shiptophone%>
<%if shiptofax%>
Fax: <%shiptofax%>
<%end shiptofax%>
<%shiptoemail%>
}
\hfill
\vspace{1cm}
\textbf{I N V O I C E}
\hfill
\vspace{1cm}
\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
\textbf{Date} & <%invdate%> \\
\textbf{Number} & <%invnumber%> \\
\textbf{Order} & <%ordnumber%> \\
\textbf{Clerk} & <%employee%>
\end{tabular}
\vspace{1cm}
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
\textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
\textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
<%foreach number%>
<%number%> & <%description%> & <%qty%> &
<%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
<%end number%>
\end{tabular*}
\parbox{\textwidth}{
\rule{\textwidth}{2pt}
\vspace{0.2cm}
\hfill
\begin{tabularx}{7cm}{Xr@{}}
\textbf{Subtotal} & \textbf{<%subtotal%>} \\
<%foreach tax%>
<%taxdescription%> on <%taxbase%> & <%tax%> \\
<%end tax%>
<%if paid%>
\textbf{Paid} & - <%paid%> \\
<%end paid%>
\hline
\textbf{Balance Owing} & \textbf{<%total%>} \\
\end{tabularx}
\vspace{0.3cm}
\hfill
All prices in \textbf{<%currency%>} funds.
\vspace{12pt}
<%if notes%>
<%notes%>
<%end if%>
}
\vfill
<%if paid%>
\begin{tabularx}{10cm}{@{}lXlr@{}}
\textbf{Payments} & & & \\
\hline
\textbf{Date} & \textbf{Account} & \textbf{Source} & \textbf{Amount} \\
<%end paid%>
<%foreach payment%>
<%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
<%end payment%>
<%if paid%>
\end{tabularx}
<%end paid%>
\vspace{1cm}
\centerline{\textbf{Thank You for your valued business!}}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\footnotetext[1]{\tiny
Payment due NET <%terms%> Days from date of Invoice. Interest on overdue
amounts will acrue at the rate of 1.5\% per month starting <%duedate%>
until paid in full. Items returned are subject to a 10\% restocking charge.
A return authorization must be obtained from <%company%> before goods are
returned. Returns must be shipped prepaid and properly insured.
<%company%> will not be responsible for damages during transit.}
\end{document}
templates/mastertemplates/Default/pick_list.html
<body bgcolor=ffffff>
<table width=100%>
<tr>
<td width=10>&nbsp;</td>
<td>
<table width=100%>
<tr>
<td>
<h4>
<%company%>
<br><%address%>
</h4>
</td>
<th><img src=http://localhost/lx-erp/lx-office-erp.png border=0 width=64 height=58></th>
<td align=right>
<h4>
Tel: <%tel%>
<br>Fax: <%fax%>
</h4>
</td>
</tr>
<tr>
<th colspan=3>
<h4>P I C K &nbsp;&nbsp; L I S T</h4>
</th>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width=100% callspacing=0 cellpadding=0>
<tr bgcolor=000000>
<th width=50% align=left><font color=ffffff>Ship To:</th>
<th width=50%>&nbsp;</th>
</tr>
<tr valign=top>
<td><%shiptoname%>
<br><%shiptostreet%>
<br><%shiptozipcode%>
<br><%shiptocity%>
<br><%shiptocountry%>
</td>
<td>
<%if shiptocontact%>
<br>Attn: <%shiptocontact%>
<%end shiptocontact%>
<%if shiptophone%>
<br>Tel: <%shiptophone%>
<%end shiptophone%>
<%if shiptofax%>
<br>Fax: <%shiptofax%>
<%end shiptofax%>
<%shiptoemail%>
</td>
</tr>
</table>
</td>
</tr>
<tr height=5></tr>
<tr>
<td>&nbsp;</td>
<td>
<table width=100% border=1>
<tr>
<th width=17% align=left>Order #</th>
<th width=17% align=left>Date</th>
<th width=17% align=left nowrap>Contact</th>
<%if warehouse%>
<th width=17% align=left>Warehouse</th>
<%end warehouse%>
<th width=17% align=left>Shipping Point</th>
<th width=15% align=left>Ship via</th>
</tr>
<tr>
<td><%ordnumber%>&nbsp;</td>
<%if shippingdate%>
<td><%shippingdate%></td>
<%end shippingdate%>
<%if not shippingdate%>
<td><%orddate%></td>
<%end shippingdate%>
<td><%employee%>&nbsp;</td>
<%if warehouse%>
<td><%warehouse%>&nbsp;</td>
<%end warehouse%>
<td><%shippingpoint%>&nbsp;</td>
<td><%shipvia%>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width=100%>
<tr bgcolor=000000>
<th align=left><font color=ffffff>Pos</th>
<th align=left><font color=ffffff>Number</th>
<th align=left><font color=ffffff>Description</th>
<th><font color=ffffff>Qty</th>
<th><font color=ffffff>Ship</th>
<th>&nbsp;</th>
<th><font color=ffffff>Bin</th>
</tr>
<%foreach number%>
<tr valign=top>
<td><%runningnumber%>
<td><%number%></td>
<td><%description%></td>
<td align=right><%qty%></td>
<td align=right>[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]</td>
<td><%unit%></td>
<td align=right><%bin%></td>
</tr>
<%end number%>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><hr noshade></td>
</tr>
</table>
templates/mastertemplates/Default/pick_list.tex
\documentclass[twoside]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\setlength{\voffset}{0.5cm}
\setlength{\hoffset}{-2.0cm}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0.5cm}
\setlength{\headsep}{1cm}
\setlength{\topskip}{0pt}
\setlength{\oddsidemargin}{1.0cm}
\setlength{\evensidemargin}{1.0cm}
\setlength{\textwidth}{19.2cm}
\setlength{\textheight}{24.7cm}
\setlength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1}
\begin{document}
\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
\pagestyle{myheadings}
\thispagestyle{empty}
\vspace*{-1.3cm}
\parbox{\textwidth}{
\parbox[b]{.42\textwidth}{
<%company%>
<%address%>
}
\parbox[b]{.2\textwidth}{
\includegraphics[scale=0.3]{sql-ledger}
}\hfill
\begin{tabular}[b]{rr@{}}
Telephone & <%tel%>\\
Facsimile & <%fax%>
\end{tabular}
\rule[1.5ex]{\textwidth}{0.5pt}
}
<%pagebreak 90 27 37%>
\end{tabular*}
\newpage
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
\vspace*{-12pt}
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rcll@{}}
\textbf{Pos} & \textbf{Number} & \textbf{Description} &
\textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\
<%end pagebreak%>
\vspace*{0.5cm}
\parbox[t]{1cm}{\hfill}
\parbox[t]{.5\textwidth}{
\textbf{Ship To}
} \hfill
\vspace{0.7cm}
\parbox[t]{1cm}{\hfill}
\parbox[t]{.5\textwidth}{
<%shiptoname%> \\
<%shiptostreet%> \\
<%shiptozipcode%> \\
<%shiptocity%> \\
<%shiptocountry%>
}
\parbox[t]{.4\textwidth}{
<%shiptocontact%>
<%if shiptophone%>
Tel: <%shiptophone%>
<%end shiptophone%>
<%if shiptofax%>
Fax: <%shiptofax%>
<%end shiptofax%>
<%shiptoemail%>
}
\hfill
\vspace{1cm}
\textbf{P I C K} \parbox{0.3cm}{\hfill} \textbf{L I S T}
\hfill
\vspace{1cm}
\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
\textbf{Order \#} & \textbf{Date} & \textbf{Contact}
<%if warehouse%>
& \textbf{Warehouse}
<%end warehouse%>
& \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em]
\hline
<%ordnumber%>
<%if shippingdate%>
& <%shippingdate%>
<%end shippingdate%>
<%if not shippingdate%>
& <%orddate%>
<%end shippingdate%>
& <%employee%>
<%if warehouse%>
& <%warehouse%>
<%end warehouse%>
& <%shippingpoint%> & <%shipvia%> \\
\hline
\end{tabularx}
\vspace{1cm}
\begin{tabular*}{\textwidth}{@{}rlp{\descrwidth}@{\extracolsep\fill}rcll@{}}
\textbf{Pos} & \textbf{Number} & \textbf{Description} &
\textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\
<%foreach number%>
<%runningnumber%> & <%number%> & <%description%> &
<%qty%> & [\hspace{1cm}] & <%unit%> & <%bin%> \\
<%end number%>
\end{tabular*}
\parbox{\textwidth}{
\rule{\textwidth}{2pt}
}
\end{document}
templates/mastertemplates/Default/purchase_order.html
<body bgcolor=ffffff>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff