This is a simple script to generate invoices and send them via email.
All you need to do is change the invoice.toml
file to suit your needs.
Dependencies:
typst
ordocker
sendmail
sendmail-cf
Follow the steps here
to configure sendmail
to use an external SMTP relay.
Then create a crontab
entry to run the script at a desired interval.
0 0 * * * /path/to/automated-invoice-system.sh && ./run.sh
The template is based on Typst's invoice-maker
but with some modifications to suit my needs.