Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Do you know of any nice looking invoice LaTeX template/class. I would like to create a web invoice engine (maybe on top of the scribtex engine) that compiles for me an invoice using the LaTeX engine (pdfLaTeX) and some data filled by a web form. Before to begin the development I'm searching for an elegant or at least nice template for invoices.

Do you have any suggestion?

share|improve this question
1  
I don't have a suggestion but, as a developer, I wouldn't spend the effort to get a LaTeX solution if I can achieve most of it by generating a PDF programmatically with something like iText (itextpdf.com). Of course, this is subjective. –  wishihadabettername Aug 8 '10 at 4:06
1  
I'm working on exactly same stuff as you. I'm using this template (with a lot of editing, of course) Latex invoice template –  Rishi Dua Dec 25 '13 at 6:30

3 Answers 3

up vote 3 down vote accepted

Take a look at the scrlttr2 package. One of the most versatile letter classes. I made an invoice template based on it and it looked great. Sorry I can't post the source here at the moment (needs editing and my machine can't compile it) but I will briefly comment what I did.

I configured scrlttr2 to get a nice looking business-like letter (KOMA-Script has > 160 pages on scrlttr2). The invoice is embedded in the body of the letter by using the invoice package.

share|improve this answer
    
It would be great if you could post this when it's in shape. I could use an invoice template as well. (Or even post it when it's not in shape!) –  rogerl Aug 8 '10 at 13:03
    
@rogerl: I briefly commented what I did. In fact much of the material in the template is about setting up the business letter which has many private details. –  Leo Liu Aug 8 '10 at 13:46

This is an old question, but here is a minimal that can display a fairly easy to understand invoice table. Add your logo and tax, if required.

The code automatically auto-increments the item counter and calculates totals.

enter image description here

It uses the fp package for calculations to ensure accuracy. It uses a longtable, as some invoices are rather long.

Here is the MWE. Embellish it with your logo and other details to customize it.

\usepackage{fp}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{longtable}
\newcounter{cnt}
\setcounter{cnt}{0}
\def\inc{\stepcounter{cnt}\thecnt}
\gdef\TotalHT{0}
\newcommand{\product}[3]{%
\inc &#1  &#2   &#3  &\FPmul\temp{#2}{#3}\FPround\temp{\temp}{2}\temp 
%% Totalize
\FPadd\total{\TotalHT}{\temp}%
\FPround\total{\total}{2}%
\global\let\TotalHT\total%
\\ }
\newcommand{\totalttc}{
   \TotalHT  }
\begin{document}
\RaggedRight
\begin{longtable}{cp{4.2cm}rrr}
\toprule
Item   &Description & Price & Qty & Total\\
\midrule
    \product{Computer peripherals}{1000.00}{1}
    \product{Harddisk 2000E}{2000}{1}
    \product{The \TeX book}{100.00}{100}
    \product{Product Four}{5000.00}{1}
    \product{Product Five}{5000.00}{2}
\midrule
    &&&& Total \totalttc\\
\bottomrule
\end{longtable}
\end{document}
share|improve this answer

I use Context for this, and use Context's layers to set out text on the PDF of my letterhead. This works well.

It was, in fact, generating letters and invoices that led to me switching from Latex to Context. If I were to try and do this using Latex, it looks like using Tikz would be the way to go, but the learning curve for doing this kind of thing with Tikz looks higher than that of Context, especially if you know any Metapost already.

share|improve this answer
    
Thanks for these thoughts Charles. Can you share some estimate of the learning curve on Metapost and Context? Asking as someone who knows enough LaTeX to write a vanilla \documentclass{article} but little else (no plain TeX for instance; anything with \..@.. scares me). –  isomorphismes Jul 2 at 20:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.