mirror of
https://git.coop/cotech/fund.git
synced 2024-12-18 09:33:05 +00:00
455306a0a6
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.
532 B
532 B
Administration
Records and documentation for the CoTech fund
Generating receipts
Install wkhtmltopdf
using, for example homebrew on OS X
brew install Caskroom/cask/wkhtmltopdf
Then in the root of the project run
ruby scripts/generate_invoices.rb
The invoices should be generated in invoices/sent/2022/
.
The ruby script can be edited to change the start of the range of invoice numbers and to generate the output in a different directory.
The data used to generate the invoices is in members.csv
.