Attachment doesn't seem to have made it, so here it comes in line.


on 11/8/06 2:07 PM Dr Eberhard W Lisse said the following:
> In message <[EMAIL PROTECTED]>, "Angus
>  Jordan" writes:
>> Hi there,
>>
>> It is always helpful to read the archives, if they can be found.
>>> I indeed use longtable and leave the page breaks to LaTeX.
>>>
>>>
>> Any chance you could post the applicable excerpts from your invoice.texfile?
>>
>> I'd love to see how this works...
> 
> 
> You have been warned :-)-O
> 
> el

\documentclass[9pt,oneside,english]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[urlcolor=blue,a4paper,colorlinks=true]{hyperref}
\usepackage{array}
\usepackage{babel}
\usepackage{bookman}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{ifthen}
\usepackage{numprint}
\usepackage{substr}
\usepackage{longtable}

\geometry{portrait,a4paper,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}

\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}

\makeatletter
\makeatother

\begin{document}
\pagestyle{empty}

\begin{center}

%
% make sure the numprint package doesn't put '.' every three digits 
before the decimal
%
\npthousandsep{}
\noindent
\setlength\LTleft{0pt}
\setlength\LTright{0pt}

\begin{longtable}{lllrlrrr}
    \multicolumn{8}{l}{
        \begin{minipage}[t]{0.5\textwidth}
            \textsf{\large\textbf{<%company%>\newline
            <%address%>\newline
            VAT--Registration Nr: 3785142-01-5}}
        \end{minipage}
        \hspace*{\fill}
        \begin{minipage}[t]{0.5\textwidth}
            \textsf{\large\textbf{\hspace*{\fill}<%invdate%>,}}
            \textsf{\large Page \textbf{\thepage}}
            \newline\newline\newline\newline
         \end{minipage}
    }\tabularnewline
    &&&&&&&\tabularnewline
    &&&&&&&\tabularnewline
    \multicolumn{8}{b{\textwidth}}{
        <%name%>\par
        <%address1%>\par
        <%address2%>\par
        <%city%>\par
        <%state%> <%zipcode%>\par
        <%country%>\par
<%if contact%>
        \textbf{\underline{Attn:}} <%contact%>
<%end contact%>
    }\tabularnewline
    &&&&&&&\tabularnewline
    \multicolumn{8}{c}{\textsf{\textbf{\LARGE 
\ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}
        {C R E D I T\ \ N O T E}{T A X\ \ I N V O I C E}}}}\tabularnewline      
    &&&&&&&\tabularnewline
    \textbf{Number} & \multicolumn{7}{l}{<%invnumber%>} \tabularnewline
<%if order%>
    \textbf{Order} & \multicolumn{7}{l}{<%ordnumber%>} \tabularnewline
<%end order%>
%   \textbf{Clerk} & \multicolumn{7}{l}{<%employee%>} \tabularnewline
<%if notes%>
    \textbf{Domain} & \multicolumn{7}{l}{<%notes%>}\tabularnewline
<%end notes%>
    &&&&&&&\tabularnewline
    &&&&&&&\tabularnewline
    \textbf{Code}&
    \textbf{Description}&
    \ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{\textbf{Date}}&
    \textbf{Qt'y}&
    \textbf{Unit}&
    \textbf{Price}&
    \textbf{Disc}&
    \textbf{Amount}\tabularnewline
\endfirsthead
    \textbf{Code}&
    \textbf{Description}&
    \ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{\textbf{Date}}&
    \textbf{Qt'y}&
    \textbf{Unit}&
    \textbf{Price}&
    \textbf{Disc}&
    \textbf{Amount}\tabularnewline
\endhead
    \multicolumn{4}{r}{Subtotal} & 
\multicolumn{4}{r}{<%subtotal%>}\tabularnewline
    &&&&&&&\tabularnewline
    \multicolumn{8}{r}{\footnotesize Continued on next Page}\tabularnewline
\endfoot
&&&&&&&\tabularnewline
\multicolumn{3}{l}{} & 
\multicolumn{4}{l}{\textbf{Subtotal}}&\textbf{<%subtotal%>}\tabularnewline
<%foreach tax%>
\multicolumn{3}{l}{}&\multicolumn{4}{l}{<%taxdescription%> on 
<%taxbase%> } & <%tax%>\tabularnewline
<%end tax%>
<%if paid%>
\multicolumn{3}{l}{} & 
\multicolumn{4}{l}{\textbf{Paid}}&<%paid%>\tabularnewline
<%end paid%>
<%if total%>
    \multicolumn{3}{l}{} & 
\multicolumn{4}{l}{\textbf{Total}}&\textbf{<%total%>}\tabularnewline
<%end total%>
<%if not total%>
    \multicolumn{3}{l}{} & 
\multicolumn{4}{l}{\textbf{Total}}&0.00\tabularnewline
<%end total%>
&&&&&&&\tabularnewline
\multicolumn{8}{r}{All prices in \textbf{<%currency%>} 
funds.}\tabularnewline
\multicolumn{8}{l}{\ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{Due 
Date: \textbf{<%duedate%>}, Terms: Net \textbf{<%terms%>} 
days}}\tabularnewline
\endlastfoot
<%foreach number%>
   <%number%> &
   <%description%> &
   \ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{<%deliverydate%>} &
   <%qty%> &
   <%unit%> &
   \nprounddigits{2}\numprint{<%sellprice%>} &
   \nprounddigits{2}\numprint{<%discount%>} &
   <%linetotal%>\tabularnewline
<%end number%>
\end{longtable}
\par
\end{center}

\vspace*{\fill}

<%if paid%>
\vspace*{\fill}
[EMAIL PROTECTED]@{}}
\textbf{Payments}& & & &\tabularnewline
\hline
\textbf{Date}&\textbf{Account}&\textbf{Source}&\textbf{Memo}&\textbf{Amount}\tabularnewline
\endfirsthead
\textbf{Date}&\textbf{Account}&\textbf{Source}&\textbf{Memo}&\textbf{Amount}\tabularnewline
\endhead
\endfoot
\endlastfoot
<%end paid%>
<%foreach payment%>
   <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & 
<%paymentmemo%> &
   \nprounddigits{2}\numprint{<%payment%>}\tabularnewline
<%end payment%>
<%if paid%>
\end{longtable}
\vspace*{\fill}
<%end paid%>


{\footnotesize%
<%if total%>
Please note that this invoice is payable immediately, however action
may be taken after the Due Date listed above.
<%end total%>
Please take note that we do not wish to communciate by Telephone or
Fax due to record keeping purposes. Please communicate with us
\textbf{only} by \textbf{un}encoded \textbf{email} (no HTML etc, please)
to \href{mailto:[EMAIL PROTECTED]@ondis.co.NA}}
and be sure to include the domain name \textbf{<%notes%>} in the
subject line for automatic filing purposes.}

\end{document}

-- 
Dr. Eberhard W. Lisse  \        / Obstetrician & Gynaecologist (Saar)
[EMAIL PROTECTED] el108-ARIN / *     |   Telephone: +264 81 124 6733 (cell)
PO Box 8421             \     /   Please do NOT email to this address
Bachbrecht, Namibia     ;____/        if it is DNS related in ANY way

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sql-ledger-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sql-ledger-users

Reply via email to