These invoices are based on the data in members.csv which in turn was
added based on the invoices we sent last year. If member co-ops get
back to us and say their details have changed or they're not able to
contribute this year, we can update the CSV and re-generate the
I've decided to commit the generated HTML rather than the PDF, as the
latter changes when I re-run the script even if the data hasn't
changed. If we need to update any data, this should make the diffs
more obvious, but of course it'll make it harder for anyone to just
grab the PDFs from the repo without installing the toolchain. For now,
it's me doing it so we can cross that bridge at a later date.
This commit updates the previous template to inline the two images as
data URIs and embed ERB template markers for the data. The ruby script
added in this commit interpolates the data from the members.csv file
into the template and generates PDFs using wkhtmltopdf.
This file format is used by the hledger tool (a plain text
accounting system). I've added all of the transactions in our unity
trust bank account to-date.
I hope to use this file to more easily generate reports to share with
the rest of CoTech.