Home

Awesome

invoices

Generates invoices to be used according to the latest (2012-2013) tax regulations.

Usage

usage: invoice.py [-h] [-t TEMPLATE] [-e] invoice_data

Invoice generator

positional arguments:
  invoice_data

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        Use TEMPLATE as LaTeX template
  -e, --english         Include English output

where invoice_data is an XML file containing the data to be entered in a particular invoice. A LaTeX (in particular, XeLaTeX) file will be produced, which you can typeset and print out.

The LaTeX file will be based on a template file; by default, this will be invoice.tex, but you can set your own by specifying -t.

The data are contained in the following elements:

If you set -e then the program will also produce English output. Note that this may require small adjustments in the LaTeX file, as including both Greek and English numbers in full may take more vertical space than you may have foreseen in your LaTeX template file.

A Greek example invoice.xml is included in the repo, as is its output produced using an example template. For English, you can check the example invoice_2.xml and its output produced using another example template.