2020-04-04 06:22:04 +00:00
|
|
|
# Administration
|
|
|
|
|
|
|
|
Records and documentation for the CoTech fund
|
|
|
|
|
|
|
|
## Generating receipts
|
|
|
|
|
2022-05-03 10:44:36 +00:00
|
|
|
Install `wkhtmltopdf` using, for example homebrew on OS X
|
2020-04-04 06:22:04 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
brew install Caskroom/cask/wkhtmltopdf
|
|
|
|
```
|
|
|
|
|
2022-05-03 10:44:36 +00:00
|
|
|
Then in the root of the project run
|
2020-04-04 06:22:04 +00:00
|
|
|
|
|
|
|
```
|
2022-05-03 10:44:36 +00:00
|
|
|
ruby scripts/generate_invoices.rb
|
2020-04-04 06:22:04 +00:00
|
|
|
```
|
2020-06-19 15:33:17 +00:00
|
|
|
|
2022-05-03 10:44:36 +00:00
|
|
|
The invoices should be generated in `invoices/sent/2022/`.
|
2020-06-19 15:33:17 +00:00
|
|
|
|
2022-05-03 10:44:36 +00:00
|
|
|
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.
|
2020-06-19 15:33:17 +00:00
|
|
|
|
2022-05-03 10:44:36 +00:00
|
|
|
The data used to generate the invoices is in `members.csv`.
|