This is a quick way to generate an invoice using ZipBooks API. It of course
requires usage of ZipBooks for logging hours, and depends pdflatex
as well
as my Python progress bar spout. The
invoice template included is can be
found here (with
appropriate credit given).
Put your ZipBooks credentials in a file of your choice and specify a directory
in which you intend on storing your invoices. This is necessary so that the
script can count how many invoices exist and determine the new invoice number.
Additionally, modify invoice.tex
to have your payer and payee information.
Like most .env
files, syntax looks like so:
ZIP_EMAIL=<zipbooks-email>
ZIP_PASSWORD=<zipbooks-password>
The name of the variable is not important, as only the right side of the '=' sign is parsed.
python3 invoice.py <filename>.env <archive-directory>